daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.09k stars 456 forks source link

Many provider examples are not working #587

Open goldingdamien opened 2 years ago

goldingdamien commented 2 years ago

Many providers in the example page are not working. For example: http://localhost:8000/provider/twitter.php

The following warnings/errors are outputted: Warning: require_once([MY_DIR]\PHPoAuthLib\examples\provider/bootstrap.php): failed to open stream: No such file or directory in[MY_DIR]\PHPoAuthLib\examples\provider\twitter.php on line 20

Fatal error: require_once(): Failed opening required '[MY_DIR]\PHPoAuthLib\examples\provider/bootstrap.php' (include_path='.;C:/laragon/etc/php/pear') in [MY_DIR]\PHPoAuthLib\examples\provider\twitter.php on line 20

Not Working: https://github.com/daviddesberg/PHPoAuthLib/blob/master/examples/provider/twitter.php#L20 require_once __DIR__ . '/bootstrap.php';

Working: https://github.com/daviddesberg/PHPoAuthLib/blob/master/examples/provider/google.php#L10 require_once __DIR__ . '/../bootstrap.php';

It seems that "/.." is required but not used in many cases.

samwilson commented 2 years ago

I don't think this package is maintained any more. See discussion on #582.