Basic PHP project scaffolding with Composer, NPM, Webpack, and Bootstrap 4
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Latest commit bad3836 Aug 30, 2017
Permalink
Failed to load latest commit information.
dist update to webpack Aug 29, 2017
src update to webpack Aug 29, 2017
.gitignore init Apr 6, 2015
LICENSE init Apr 6, 2015
README.md update to webpack Aug 29, 2017
composer.json update to webpack Aug 29, 2017
composer.lock update to webpack Aug 29, 2017
mix-manifest.json update to webpack Aug 29, 2017
package.json update to webpack Aug 29, 2017
webpack.mix.js update to webpack Aug 29, 2017

README.md

Basic PHP Project Scaffolding

Basic PHP project scaffolding with Composer, NPM, Webpack, & Bootstrap.

Overview

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.

Project Tree

.
├── dist
|   ├── assets
|   |   ├── css
|   |   └── js
|   └── index.php
├── src
|   ├── js
|   |   └── application.js
|   └── sass
|       └── application.scss
|
├── vendor
├── package.json
└── webpack.mix.js

Getting Started

Prerequirements: You must have Composer and Node.js installed on your system. It's pretty easy to install them, just follow the instructions on their websites.

  1. Add composer packages to composer.json and run composer update to download and install them.
  2. Add NPM packages to package.json and run npm install to download and install them.
  3. Run npm run dev, npm run production, or npm run watch to compile your assets.