PHPackages                             monkeycode/microsite-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. monkeycode/microsite-template

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

monkeycode/microsite-template
=============================

v0.1.4(11y ago)128MITJavaScript

Since Feb 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/meandmymonkey/silex-template)[ Packagist](https://packagist.org/packages/monkeycode/microsite-template)[ RSS](/packages/monkeycode-microsite-template/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

Microsite Template for Silex
============================

[](#microsite-template-for-silex)

[![Build Status](https://camo.githubusercontent.com/b9d779e6d8e8c11bbd1e47a3597fe6a0f517b946a1fe6ed47e9a37661c99e81d/68747470733a2f2f7472617669732d63692e6f72672f6d65616e646d796d6f6e6b65792f73696c65782d74656d706c6174652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/meandmymonkey/silex-template)

A bootstrapped Silex/Javascript setup. Targeted at small sites and for use as a JS playground.

The purpose of this template is mainly to provide preconfigured Javascript, Less, and Testing toolchains along with a basic Silex/Twig setup. While you can easily remove, add, or modify individual features, it may make sense to take a look at [other approaches](http://lyrixx.github.io/Silex-Kitchen-Edition/) that are more focused on Silex itself if you are not planning to use at least some of these tools.

The main components are:

- [Silex](http://silex.sensiolabs.org/) to tie everything together and to provide [Twig](http://twig.sensiolabs.org/) support.
- [gulp.js](http://gulpjs.com/) as a JS build system
- [browserify](http://browserify.org/) to handle JS components
- [AngularJS](http://angularjs.org/) as a JS Framework (can be easily removed if not needed)
- [Less](http://lesscss.org/) for CSS handling
- [Behat](http://behat.org/) configured to use [PhantomJS](http://phantomjs.org/) for functional testing

Requirements
------------

[](#requirements)

To install, build, and test the project, you will need the following tools:

- Composer
- Node.js
- npm
- Bower
- A global install of gulp
- PhantomJS (optional)

Installation
------------

[](#installation)

```
$ composer create-project monkeycode/microsite-template myProject
$ cd myProject
$ npm install
$ bower install

```

Where to find what
------------------

[](#where-to-find-what)

All non-PHP code is located in `/resources`, all PHP files in `src`.

- `/resources/js`: Javascript application files (note that library files are under `/node_modules` because of the napa install).
- `/resources/less`: Less files. Already includes imports for Bootstrap v3.
- `/resources/views`: Twig templates.
- `/src/app.php`: Silex application setup.
- `/src/controllers.php`: Controllers &amp; routing.
- `/config`: Silex application configuration.
- `/web`: Document root. Front controllers and generated JS/CSS assets.

Building
--------

[](#building)

The provided basic `gulpfile.js` lets you run the following tasks:

- `gulp`: Default task - watch both Less and Javascript sources for changes and rebuild assets on the fly for dev use.
- `gulp prod`: Compile &amp; minify Less and Javascript for production use.

Some additional tasks are available, but will generally be called implicitly as dependencies of the two previous tasks:

- `gulp less`: Compile Less to CSS in `/web/css/main.css`.
- `gulp lint`: Run JSHint on the Javascript files.
- `gulp js-dev-lib`: Concatenate all vendor libraries separately from the application JS for dev use.
- `gulp js-dev-app`: Concatenate all scripts separately from the vendor libraries for dev use.
- `gulp dev`: Runs `less`, `js-dev-lib`, and `js-dev-lib`.

Testing
-------

[](#testing)

A sample test is provided in Behat, and configured for use with PhantomJS. The suite can be run locally by calling `./testlocal.sh`.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Total

3

Last Release

4271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d8c79bfc0e8f4ba10b22fbcdb6e1dd859961754d8b42fb2a027a8bafe7169a7?d=identicon)[meandmymonkey](/maintainers/meandmymonkey)

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/monkeycode-microsite-template/health.svg)

```
[![Health](https://phpackages.com/badges/monkeycode-microsite-template/health.svg)](https://phpackages.com/packages/monkeycode-microsite-template)
```

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215636.5k13](/packages/igorw-config-service-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
