Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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](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)