Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezoerb/generator-frontend-php
Frontend generator supporting RequireJS, different test and css frameworks and PHP
https://github.com/bezoerb/generator-frontend-php
Last synced: 14 days ago
JSON representation
Frontend generator supporting RequireJS, different test and css frameworks and PHP
- Host: GitHub
- URL: https://github.com/bezoerb/generator-frontend-php
- Owner: bezoerb
- License: mit
- Created: 2013-10-15T04:14:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T07:24:02.000Z (over 9 years ago)
- Last Synced: 2024-10-18T19:17:10.350Z (26 days ago)
- Language: JavaScript
- Size: 1.11 MB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-frontend-php [![Build Status](https://secure.travis-ci.org/bezoerb/generator-frontend-php.png?branch=master)](https://travis-ci.org/bezoerb/generator-frontend-php)
A generator for [Yeoman](http://yeoman.io).
## Getting Started
### What is Yeoman?
Trick question. It's not a thing. It's this guy:
![](http://i.imgur.com/JHaAlBJ.png)
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](https://npmjs.org) 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 buildTo 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](https://github.com/josegonzalez/homebrew-php) repository:```shell
brew tap homebrew/dupes
brew tap homebrew/homebrew-php
brew install php54
```##### Windows
The `php-cgi` binary can be installed via [XAMPP](http://www.apachefriends.org/de/xampp-windows.html).
Here is how you can add the binary to your PATH: [Link](https://www.monosnap.com/image/psLZ5fpwuSsvJJeZPdklEjxMr)##### Ubuntu
```shell
sudo apt-get install php5-cgi
```## License
[MIT License](bezoerb.mit-license.org)