Download the PHP package bitolaco/silex-app without Composer

On this page you can find all versions of the php package bitolaco/silex-app. 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-app

Latest Stable Version Total Downloads Latest Unstable Version License

This package provides a quick way to a Silex app and various service providers via a single yaml configuration file, and set up different configurations based on environments.

It uses Eloquent by default instead of Doctrine, because adding an ORM is an upgrade in our opinion!

Documentation forthcoming!

Usage

Service Providers

The following service providers are currently supported, with more on the way.

Monolog

The monolog parameters and what they mean can be found here. It's a one-to-one direct compilation of the parameters there.

If you're setting the level parameter, be sure you're using a string (like "INFO") instead of the PHP constant like Logger::INFO, since the constant won't work.

Environments

The main config key servers allows you to set up define environments. The key is the name of the environment, and the value is an array of hostnames that are in that environment.

When using this option, you can then override default the default configuration by defining variables in the environment[] object.

For example, if you want debugging on your local machine, who's hostname is dev-machine, you could set things up like this:

In a production setting (i.e. any server without a hostname of dev-machine debugging would be off, but on your local development machine, it would be on.

Machines can be assigned multiple environments, and the last environment variable overwrites all the previous ones.

Routing

In the config yaml file, the section for routing is used as follows:


All versions of silex-app with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
bitolaco/silex-eloquent Version ~0.1
deralex/yaml-config-service-provider Version 1.0.x-dev
monolog/monolog Version *
silex/silex Version ~1.2
swiftmailer/swiftmailer Version >=4.1.2,<4.2-dev
symfony/config Version ~2.4
symfony/validator Version ~2.4
twig/twig Version >=1.8,<2.0-dev
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 bitolaco/silex-app contains the following files

Loading the files please wait ....