generator-frontend-php
v0.1.15
Published
A generator for Yeoman with php support
Downloads
32
Readme
generator-frontend-php
A generator for Yeoman.
Getting Started
What is Yeoman?
Trick question. It's not a thing. It's this guy:
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
$ npm install -g yo
PHP Frontend Generator
Generate static html files using php with the power of that nice gentleman.
- Local Connect web-server
- Live reloading
- HTML5 Boilerplate
- Integration of PureCSS, Bootstrap or Foundation
- Compiling PHP templates to HTML
- Compiling Sass and Less
- RequireJS or Browserify
- JS testing with Mocha, Qunit, Jasmine or DalekJS
- Plato Reports
- CSS and JS minification
- Strip unused CSS with grunt-uncss
- Image optimization
- Picturefill
- HTML and JS linting
- Custom Modernizr build
To install generator-frontend-php from npm, run:
$ npm install -g generator-frontend-php
To make this work you need the php-cgi
binaray in your PATH.
Finally, initiate the generator:
$ yo frontend-php
Installing php-cgi
OSX
The php-cgi
binary can be installed via Homebrew by tapping the
homebrew-php repository:
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php54
Windows
The php-cgi
binary can be installed via XAMPP.
Here is how you can add the binary to your PATH: Link
Ubuntu
sudo apt-get install php5-cgi