Coder Social home page Coder Social logo

silex-template's Introduction

Silex Template

Silex-Based Website Template which can be used as a starting point for pretty much any website. Just a nice way to spare time for setup in the future.

Main features:

  • Ready-to-roll Twig Template setup to start creating pages right away
  • Assetic included (works automagically)
    • Parses LESS files into plain CSS
    • Combines CSS and JS files into single files
  • Development Version
  • Production Version (optimized with cache and compiled assets)
  • Test Version ready for PHPUnit
  • Console Deployment Scripts to rebuild cache and deploy assets

Prerequisites

  • PHP 5.3.2+
  • Composer
  • Some really basic knowledge of Silex

Installation

  1. Get this template to your machine: git clone [email protected]:clops/silex-template.git
  2. Get composer (if you don't have a global one): curl -s http://getcomposer.org/installer | php
  3. Run installation of dependancies: php composer.phar install
  4. Set writing permissions (optional, as composer will attempt to do this): chmod 777 -R resources/cache resources/log
  5. Configure your web-server to deliver web/ as the host root

Usage

  • src/Routes.php contains all the registered routes with the respective Controllers
  • src/Clops/Controller/* place where the page controllers reside, add yours here too
  • Use phpunit from test to fire your Unit Tests, use test/Clops/Tests/baseTest.php as a starting point

silex-template's People

Contributors

clops avatar jaggaer-akulikov avatar tomas2387 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

silex-template's Issues

<?php instead of <?

Having just <? assumes that people have short tags turned on. Should use <?php everywhere to avoid configuration issues.

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.