Commit a0c61f0a authored by Fabien Potencier's avatar Fabien Potencier

added a fat archive which contains many more Symfony component and third-party...

added a fat archive which contains many more Symfony component and third-party libraries (closes #365)
parent 68a5e322
......@@ -16,58 +16,51 @@ else
$PHP composer.phar self-update >/dev/null 2>/dev/null
fi
if [ ! -d "$DIR/build/skeleton" ]; then
for TYPE in slim fat
do
if [ -d "$DIR/build/skeleton" ]; then
rm -rf $DIR/build/skeleton
fi
mkdir -p $DIR/build/skeleton
fi
cd "$DIR/build/skeleton"
cat - << EOF >composer.json
{
"require": {
"silex/silex": "dev-master"
}
}
EOF
mkdir -p web/
cat - << EOF >web/index.php
<?php
cd "$DIR/build/skeleton"
require_once __DIR__.'/../vendor/autoload.php';
mkdir -p web/
COMPOSER=$TYPE"_composer.json"
cp $DIR/bin/skeleton/$COMPOSER composer.json
cp $DIR/bin/skeleton/index.php web/index.php
\$app = new Silex\\Application();
$PHP ../composer.phar install -q
\$app->get('/hello', function() {
return 'Hello!';
});
if [ -d "$DIR/build/tmp/silex" ]; then
rm -rf $DIR/build/tmp/silex
fi
mkdir -p $DIR/build/tmp/silex
\$app->run();
EOF
$PHP ../composer.phar install -q
if [ -d "$DIR/build/tmp/silex" ]; then
rm -rf $DIR/build/tmp/silex
fi
mkdir -p $DIR/build/tmp/silex
cd "$DIR/build/tmp/silex"
cp -r ../../skeleton/* .
cd "$DIR/build/tmp/silex"
cp -r ../../skeleton/* .
find . -name .DS_Store | xargs rm -rf -
find . -name .git | xargs rm -rf -
find . -name phpunit.xml.* | xargs rm -rf -
find . -type d -name Tests | xargs rm -rf -
find . -type d -name tests | xargs rm -rf -
find . -type d -name doc | xargs rm -rf -
find . -name .DS_Store | xargs rm -rf -
find . -name .git | xargs rm -rf -
find . -name phpunit.xml.* | xargs rm -rf -
find . -type d -name Tests | xargs rm -rf -
find . -type d -name tests | xargs rm -rf -
find . -type d -name doc | xargs rm -rf -
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
cd "$DIR/build/tmp"
cd "$DIR/build/tmp"
if [ "slim" == "$TYPE" ]; then
NAME="silex"
else
NAME="silex_fat"
fi
tar zcpf "$DIR/build/silex.tgz" silex
rm -f "$DIR/build/silex.zip"
zip -rq "$DIR/build/silex.zip" silex
rm -rf "$DIR/build/tmp"
rm -f "$DIR/build/$NAME.*"
tar zcpf "$DIR/build/$NAME.tgz" silex
zip -rq "$DIR/build/$NAME.zip" silex
rm -rf "$DIR/build/tmp"
rm -rf "$DIR/build/skeleton"
done
{
"require": {
"silex/silex": "dev-master",
"symfony/browser-kit": "2.1.*",
"symfony/console": "2.1.*",
"symfony/css-selector": "2.1.*",
"symfony/dom-crawler": "2.1.*",
"symfony/filesystem": "2.1.*",
"symfony/finder": "2.1.*",
"symfony/form": "2.1.*",
"symfony/locale": "2.1.*",
"symfony/process": "2.1.*",
"symfony/security": "2.1.*",
"symfony/serializer": "2.1.*",
"symfony/translation": "2.1.*",
"symfony/validator": "2.1.*",
"symfony/monolog-bridge": "2.1.*",
"symfony/twig-bridge": "2.1.*",
"monolog/monolog": ">=1.0.0",
"twig/twig": ">=1.2.0",
"doctrine/dbal": "2.1.*",
"swiftmailer/swiftmailer": "4.1.*"
}
}
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app->get('/hello', function() {
return 'Hello!';
});
$app->run();
{
"require": {
"silex/silex": "dev-master"
}
}
......@@ -42,7 +42,7 @@ back to the client.
Finally, the app is run. Visit ``/hello/world`` to see the result. It's really
that easy!
Installing Silex is as easy as it can get. Download the `silex.zip`_ file,
Installing Silex is as easy as it can get. `Download`_ the archive file,
extract it, and you're done!
.. _silex.zip: http://silex.sensiolabs.org/get/silex.zip
.. _Download: http://silex.sensiolabs.org/download
......@@ -6,9 +6,8 @@ This chapter describes how to use Silex.
Installation
------------
If you want to get started fast, download either the `silex.zip`_ or the
`silex.tgz`_ archive and extract it, you should have the following directory
structure:
If you want to get started fast, `download`_ Silex as an archive and extract
it, you should have the following directory structure:
.. code-block:: text
......@@ -839,5 +838,4 @@ this sample ``web.config`` file:
</configuration>
.. _FallbackResource directive: http://www.adayinthelifeof.nl/2012/01/21/apaches-fallbackresource-your-new-htaccess-command/
.. _silex.zip: http://silex.sensiolabs.org/get/silex.zip
.. _silex.tgz: http://silex.sensiolabs.org/get/silex.tgz
.. _download: http://silex.sensiolabs.org/download
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment