Skip to content

Comprehensive list of Symfony2 bundles ordered by relevance and integrated with GitHub. A public API will also be available.

Notifications You must be signed in to change notification settings

robzienert/symfony2bundles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#symfony2bundles.org

Open-source code of the symfony2bundles.org website, written in Symfony2.

Install

Get the code

git clone git://github.com/knplabs/symfony2bundles.git
cd symfony2bundles
git submodule update --init --recursive

The last command requires Git >= 1.6. Alternatively, you can run git submodule init and git submodule update, and recurse manually in submodules.

Configure

To configure your DB for your development and test environments, edit your /app/config/config_dev_local.yml and /app/config/config_test_local.yml to add your specific DB settings:

imports:
  - { resource: config_dev.yml }

doctrine.dbal:
  connections:
    default:
      driver:               PDOMySql
      dbname:               app
      user:                 root
      password:             changeme
      host:                 localhost
      port:                 ~

Create database and tables

php app/console-dev doctrine:database:drop
php app/console-dev doctrine:database:create
php app/console-dev doctrine:schema:create

php app/console-test doctrine:database:drop
php app/console-test doctrine:database:create
php app/console-test doctrine:schema:create

Generate the doctrine proxies

php app/console-dev doctrine:generate:proxies
php app/console-test doctrine:generate:proxies

Load data fixtures

php app/console-dev doctrine:data:load
php app/console-test doctrine:data:load

Run the tests (requires latest PHPUnit 3.5)

phpunit -c app

To generate migrations from your current schema

php app/console-dev doctrine:migrations:diff --bundle=Application\\S2bBundle
php app/console-dev doctrine:migrations:migrate --bundle=Application\\S2bBundle
php app/console-dev doctrine:generate:proxies

Populate document collections from GitHub

php app/console-dev app:populate

This can take long time. GitHub API is limited to 60 calls per minute, so the commands needs to wait.

About

Comprehensive list of Symfony2 bundles ordered by relevance and integrated with GitHub. A public API will also be available.

Resources

Stars

Watchers

Forks

Packages

No packages published