Coder Social home page Coder Social logo

silex-skeleton's Introduction

Silex Skeleton

Welcome to the Silex Skeleton - a fully-functional Silex application that you can use as the skeleton for your new applications.

This document contains information on how to start using the Silex Skeleton.

Creating a Silex Application

Silex uses Composer to ease the creation of a new project:

$ composer create-project fabpot/silex-skeleton path/to/install

Composer will create a new Silex project under the path/to/install directory.

Browsing the Demo Application

Congratulations! You're now ready to use Silex.

To see a real-live Silex page in action, start the PHP built-in web server with command:

$ cd path/to/install
$ php -S localhost:8888 -t web/ web/index_dev.php

Then, browse to http://localhost:8888/.

Getting started with Silex

This distribution is meant to be the starting point for your Silex applications.

A great way to start learning Silex is via the Documentation, which will take you through all the features of Silex.

What's inside?

The Silex Skeleton is configured with the following service providers:

  • UrlGeneratorServiceProvider - Provides a service for generating URLs for named routes.
  • ValidatorServiceProvider - Provides a service for validating data. It is most useful when used with the FormServiceProvider, but can also be used standalone.
  • ServiceControllerServiceProvider - As your Silex application grows, you may wish to begin organizing your controllers in a more formal fashion. Silex can use controller classes out of the box, but with a bit of work, your controllers can be created as services, giving you the full power of dependency injection and lazy loading.
  • TwigServiceProvider - Provides integration with the Twig template engine.
  • WebProfilerServiceProvider - Enable the Symfony web debug toolbar and the Symfony profiler in your Silex application when developing.
  • MonologServiceProvider - Enable logging in the development environment.

Read the Providers documentation for more details about Silex Service Providers.

Enjoy!

silex-skeleton's People

Contributors

danez avatar diimpp avatar fabpot avatar iamluc avatar ifdattic avatar petk avatar pulse00 avatar royopa avatar vicb avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.