Download the PHP package glavweb/silex-standard without Composer

On this page you can find all versions of the php package glavweb/silex-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silex-standard

Silex Standard Edition

This is set of gulp tasks and watchers for converting PSD to HTML using Twig template engine (based on Silex Framework).

Goal:

The main goal of this build is creating the fastest HTML integration with Symfony. Decrease time for replacing and editing templates by means of using Symfony methodology, Twig template engine and gorgeous Gulp bundler.

Installation

1) Creating a Silex Application

You can use Composer to ease the creation of a new project:

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

2) Configure the project

You need create parameter.php file. For this you can clone parameter.php.dist file to parameter.php and change parameter host_url to your site host:

3) Install node modules:

4) Install bower

If bower not installed previously, run command:

Install dependent libraries:

5) Install Gulp

If Gulp not installed previously, run command:

6) Run Gulp

run command:

Project structure:

There are three main directories: web, app and src. Description of each one is below

Web:

Web folder contains all project static files and entrypoints for the project:

App:

Markup folder contains configuration and templates:

Src:

The src folder contains scripts for extend logic the project.

Is uses popular programming pattern - Model-View-Controller.


Fixtures - contains dummy for project's instances.

For example: Menu instance looks like:


Views - contains html templates.

Base of html templates is Twig template engine uses at Symfony by default. Full documentation is here Twig/doc

We create base template per each page where are header and footer as usual. We call it base.html.twig (.html postfix isn't necessary but it needs for projects, which will be integrated with Symfony). Base template is at root directory of each templates and is bone for following pages

Per common blocks which are used on several pages we create at app/Resources/views/common folder. Inserting of such blocks by means of include tag. For example:

Important: folders path is determined regarding root template folder app/Resources/views.

All external files includes by asset function, which generates right paths to resources


Controllers - contains configuration for templates.

For example Person action in Default controller:

'/person' - define URL for page. 'person_show' - method "bind" allow get page url by action name. For example:

'pages/person.html.twig' - here define path to twig template.

Also you can pass some variables for your twig template:

Gulp:

Gulp contains all bundlers tasks and watchers. All tasks are easy to understand:

Generate static HTML pages:

You can generate static HTML pages, for this you need run command:

will be generated pages in folder web/static.


All versions of silex-standard with dependencies

PHP Build Version
Package Version
Requires silex/silex Version ~2.0
twig/twig Version ^1.26
symfony/twig-bridge Version ^3.1
symfony/asset Version ^3.1
symfony/console Version ^3.2
monolog/monolog Version ^1.22
glavweb/markup-fixture Version ~0.2
glavweb/silex-markup-fixture Version ~0.1
glavweb/silex-static-page-generator Version ~0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package glavweb/silex-standard contains the following files

Loading the files please wait ....