Basic PHP Project Scaffolding
Basic PHP project scaffolding with Composer, NPM, Webpack, & Bootstrap.
This project helps speed up the process of setting up a simple PHP project. It creates a maintainable directory structure in addition to configuring Composer, NPM, Webpack, and Bootstrap - and that's basically it. The project is intentionally bare so you can do whatever you want. By default it uses SCSS but you can easily replace it with LESS or whatever you want. I've also included a basic PHP mailer using Mailgun.
. ├── dist | ├── assets | | ├── css | | └── js | └── index.php ├── src | ├── js | | └── application.js | └── sass | └── application.scss | ├── vendor ├── package.json └── webpack.mix.js
- Add composer packages to
composer updateto download and install them.
- Add NPM packages to
npm installto download and install them.
npm run dev,
npm run production, or
npm run watchto compile your assets.