This commit is contained in:
R. Eric Wheeler 2016-07-03 09:08:55 -07:00
parent 33b4c9b827
commit 24c152a808
4 changed files with 0 additions and 98 deletions

View File

@ -1,36 +0,0 @@
language: php
sudo: false
env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi
before_script:
# symfony/*
- sh -c "if [ '$TWIG_VERSION' != '2.0' ]; then sed -i 's/~1.8|~2.0/~1.8/g' composer.json; composer update; fi"
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.0' ]; then sed -i 's/~2\.8|^3\.0/3.0.*@dev/g' composer.json; composer update; fi"
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.1' ]; then sed -i 's/~2\.8|^3\.0/3.1.*@dev/g' composer.json; composer update; fi"
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '' ]; then sed -i 's/~2\.8|^3\.0/2.8.*@dev/g' composer.json; composer update; fi"
- composer install
script: phpunit
matrix:
include:
- php: 5.5
- php: 5.6
env: TWIG_VERSION=2.0
- php: 5.6
env: SYMFONY_DEPS_VERSION=3.0
- php: 5.6
env: SYMFONY_DEPS_VERSION=3.1
- php: 7.0
- php: hhvm

View File

@ -1,62 +0,0 @@
Silex, a simple Web Framework
=============================
Silex is a PHP micro-framework to develop websites based on `Symfony
components`_::
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app->get('/hello/{name}', function ($name) use ($app) {
return 'Hello '.$app->escape($name);
});
$app->run();
Silex works with PHP 5.5.9 or later.
Installation
------------
The recommended way to install Silex is through `Composer`_:
.. code-block:: bash
composer require silex/silex "~2.0"
Alternatively, you can download the `silex.zip`_ file and extract it.
More Information
----------------
Read the `documentation`_ for more information and `changelog
<doc/changelog.rst>`_ for upgrading information.
Tests
-----
To run the test suite, you need `Composer`_ and `PHPUnit`_:
.. code-block:: bash
$ composer install
$ phpunit
Community
---------
Check out #silex-php on irc.freenode.net.
License
-------
Silex is licensed under the MIT license.
.. _Symfony components: http://symfony.com
.. _Composer: http://getcomposer.org
.. _PHPUnit: https://phpunit.de
.. _silex.zip: http://silex.sensiolabs.org/download
.. _documentation: http://silex.sensiolabs.org/documentation