2017 © Pedro Peláez
 

library symfony-prelude

A lightweight template kernel for Symfony2 with auto-install script

image

trismegiste/symfony-prelude

A lightweight template kernel for Symfony2 with auto-install script

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

Prelude to Symfony Build Status

An easy way to start a Symfony app, (*1)

What

This small lib does 3 things :, (*2)

  • Provides a fat-free kernel for Symfony 2 with only essential bundles
  • Provides an auto-installer script for platform-specific parameters
  • Inject a default parameter "developer.name" to customize your configuration when many developers are involved

Why

Reduce the rate of "But it works on my computer (or my VM) !", (*3)

It starts for 3 reasons :, (*4)

  • the lost so many times of the infamous parameters.yml
  • the AppKernel class is not OCP
  • customizing parameters automatically between a team

Example

In the end, the Kernel looks like :, (*5)

use Trismegiste\Prelude\Kernel;

class AppKernel extends Kernel
{
    protected function registerAdditionalBundles()
    {
        return [];
    }
}

See through the [phpunit tests][3] or the social network app iinano, (*6)

When

Before you start to mess your AppKernel and parameters.yml. When you don't need fatty fat bundles like Doctrine or Swiftmailer or ide-validation-less annotations., (*7)

Where

Add this lib to the composer.json of your Symfony project. Add the install script for Composer. Rewrite the AppKernel like you can see in iinano. Remove parameters.yml (and its reference). Remove Incenteev reference in composer.json., (*8)

Y U NO use Incenteev ?

This lib does not provide a way to prepare a parameters.yml for the preprod server, for example, so your sysadmin does not get mad when he's installing your app at 1:00 AM. Only the file for the production server needs to be in gitignore., (*9)

Nonetheless, you can use both in the same project., (*10)

The Versions

01/09 2014

dev-master

9999999-dev

A lightweight template kernel for Symfony2 with auto-install script

  Sources   Download

MIT

The Requires

  • php >=5.4.3

 

The Development Requires

01/09 2014

v1.0.2

1.0.2.0

A lightweight template kernel for Symfony2 with auto-install script

  Sources   Download

MIT

The Requires

  • php >=5.4.3

 

The Development Requires

29/08 2014

v1.0.1

1.0.1.0

A lightweight template kernel for Symfony2 with auto-install script

  Sources   Download

MIT

The Requires

  • php >=5.4.3

 

The Development Requires

26/08 2014

v1.0.0

1.0.0.0

A lightweight template kernel for Symfony2 with auto-install script

  Sources   Download

MIT

The Requires

  • php >=5.4.3

 

The Development Requires