|
1 |
| -# Symfony CMF Standard Edition [](http://travis-ci.org/symfony-cmf/symfony-cmf-standard) |
| 1 | +# Symfony CMF Standard Edition |
2 | 2 |
|
3 |
| -### You will need: |
4 |
| - * Git 1.6+ |
5 |
| - * PHP 5.3.3+ |
6 |
| - * php5-intl |
7 |
| - * phpunit 3.6+ (optional) |
8 |
| - * composer |
| 3 | +[](http://travis-ci.org/symfony-cmf/symfony-cmf-standard) |
| 4 | +[](https://packagist.org/packages/symfony-cmf/standard-edition) |
| 5 | +[](https://packagist.org/packages/symfony-cmf/standard-edition) |
9 | 6 |
|
10 |
| -## Get the code |
| 7 | +The Symfony CMF Standard Edition (SE) is a distribution of the |
| 8 | +[Symfony Content Management Framework (CMF)](http://cmf.symfony.com/) |
| 9 | +and licensed under the [MIT License](LICENSE). |
11 | 10 |
|
| 11 | +This distribution is based on all the main CMF components needed for most common |
| 12 | +use cases, and can be used to create a new Symfony/CMF project from scratch. |
12 | 13 |
|
13 |
| - curl -s http://getcomposer.org/installer | php -- |
14 |
| - php composer.phar create-project --stability dev symfony-cmf/standard-edition path/to/install |
15 | 14 |
|
16 |
| -This will fetch the main project and all it's dependencies. |
| 15 | +## Requirements |
17 | 16 |
|
18 |
| -The next step is to setup the database, if you want to use Sqlite as your database backend just go ahead and run the following: |
| 17 | +* Symfony 2.3.x |
| 18 | +* See also the `require` section of [composer.json](composer.json) |
19 | 19 |
|
20 |
| - app/console doctrine:database:create |
21 |
| - app/console doctrine:phpcr:init:dbal |
22 |
| - app/console doctrine:phpcr:repository:init |
23 |
| - app/console doctrine:phpcr:fixtures:load |
24 | 20 |
|
25 |
| -If you prefer to use another database backend, for example MySQL, run the Symfony configurator (point your browser |
26 |
| -to /web/config.php) or set your database connection parameters in app/config/parameters.yml. Make sure you leave |
27 |
| -the 'database_path' property at 'null' in order to use another driver than SQLite. Leaving the field blank in the |
28 |
| -web-configurator should set it to 'null'. |
| 21 | +## Documentation |
29 | 22 |
|
30 |
| -## Access by web browser |
| 23 | +For the install guide and reference, see: |
31 | 24 |
|
32 |
| -Create an apache virtual host entry along the lines of |
| 25 | +* [symfony-cmf-standard documentation](http://symfony.com/doc/master/cmf/getting_started/installing_symfony_cmf.html) |
33 | 26 |
|
34 |
| - <Virtualhost *:80> |
35 |
| - Servername symfony-cmf-standard.lo |
36 |
| - DocumentRoot /path/to/symfony-cmf/symfony-cmf-standard/web |
37 |
| - <Directory /path/to/symfony-cmf/symfony-cmf-standard> |
38 |
| - AllowOverride All |
39 |
| - </Directory> |
40 |
| - </Virtualhost> |
| 27 | +See also: |
41 | 28 |
|
42 |
| -And add an entry to your hosts file for "symfony-cmf-standard.lo" |
| 29 | +* [All Symfony CMF documentation](http://symfony.com/doc/master/cmf/index.html) - complete Symfony CMF reference |
| 30 | +* [Symfony CMF Website](http://cmf.symfony.com/) - introduction, live demo, support and community links |
43 | 31 |
|
44 |
| -If you are running Symfony2 for the first time, run http://symfony-cmf-standard.lo/config.php to ensure your |
45 |
| -system settings have been setup inline with the expected behaviour of the Symfony2 framework. |
46 | 32 |
|
47 |
| -Then point your browser to http://symfony-cmf-standard.lo/app_dev.php or http://symfony-cmf-standard.lo |
| 33 | +## Contributing |
48 | 34 |
|
49 |
| -Functional tests are written with PHPUnit. Note that Bundles and Components are tested independently. |
| 35 | +Pull requests are welcome. Please see our [CONTRIBUTING](CONTRIBUTING.md) guide. |
50 | 36 |
|
51 |
| - app/console doctrine:phpcr:workspace:create standard_test |
52 |
| - phpunit -c app |
| 37 | +Unit and/or functional tests exist for this bundle. See the |
| 38 | +[Testing documentation](http://symfony.com/doc/master/cmf/components/testing.html) |
| 39 | +for a guide to running the tests. |
53 | 40 |
|
54 |
| -## Configuration |
55 |
| - |
56 |
| -You can use the same steps as for the Symfony2 Standard Edition to check and configure the application: |
57 |
| -https://github.com/symfony/symfony-standard#2-checking-your-system-configuration |
58 |
| - |
59 |
| -Note that if you want to improve performance you can enable the caching system: |
60 |
| -https://github.com/symfony-cmf/symfony-cmf-standard/blob/master/app/config/parameters.yml#L10 |
61 |
| - |
62 |
| -This will enable caching of storage API lookups into the file system. However it can easily be |
63 |
| -configured to instead use any of the caching backends supported by Doctrine Common and exposed |
64 |
| -by LiipDoctrineCacheBundle: |
65 |
| -https://github.com/liip/LiipDoctrineCacheBundle |
| 41 | +Thanks to |
| 42 | +[everyone who has contributed](https://github.com/symfony-cmf/symfony-cmf-standard/contributors) already. |
0 commit comments