Download the PHP package barnabywalters/silex-starter without Composer

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

barnabywalters/silex-starter

My skeleton for PHP+Silex applications. Small, flat, predictable, minimal, flexible. Based very much on fabpot’s silex skeleton.

From zero to hello-world:

> curl -Ss https://getcomposer.org/installer | php
> ./composer.phar create-project barnabywalters/silex-starter
> ./serve
> ./open

What next?

If I want to implement logging in really quickly I usually install taproot/authentication — the lowest-friction route to allowing login with your domain name.

Back-end

A basic Silex app is created with a URL generation provider and a basic pure-PHP template rendering provider which can be used like this:

The first argument is the template path, relative to templates/, sans the .php. $pad is true by default, and wraps the content of the template with rendered output of templates/header.html.php and templates/footer.html.php.

All application-specific code goes in src/. Functions (which should make up the mainstay of your code) go in flat, sensibly named files in this directory — add their paths to composer.json to autoload them. src/ is also the root for any PSR-0 class-based autoloading you may wish to do.

hacks.php is provided as a location for temporary, cludgy code. It is an invitation to both be explicit about the fact that something is cludgy, and an invitation to fix it. A good place to look in those times when you have 30 minutes and want to fix something small.

Front-end

A minimal RequireJS “application” is provided, with bean for cross-browser event handling and my own http.js, a minimal abstraction over XMLHttpRequest.

Command Line

Various conveniences are provided.

To define new console commands, add them to src/console.php.

Testing

PHPUnit is used for testing. The stub of a functional test suite is provided, with a bootstrapping function for creating an application object tailor-made for testing.

To run the tests, do the usual:

> ./vendor/bin/phpunit

You may also wish to create an alias or shortcut for this if it becomes too unwieldy and you aren’t using an automatic test runner.


All versions of silex-starter with dependencies

PHP Build Version
Package Version
Requires psr/log Version *
monolog/monolog Version *
silex/silex Version 1.*
psy/psysh Version *
symfony/console Version ~2.2
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 barnabywalters/silex-starter contains the following files

Loading the files please wait ....