Why auto_prepend_file take no effect in php's interactive mode?
问题 Install package via composer and import it : mkdir myproject cd myproject composer require metowolf/meting mkdir public touch public/index.php Load it in the index.php: cd public vim index.php <?php require __DIR__ . '/../vendor/autoload.php'; use Metowolf\Meting; $api = new Meting('netease'); Display the project directory structure: tree myproject myproject ├── composer.json ├── composer.lock ├── public │ └── index.php └── vendor ├── autoload.php ├── composer │ ├── autoload_classmap.php │ ├─