PHPackages                             beberlei/doctrine2-symfony2-workshop - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. beberlei/doctrine2-symfony2-workshop

ActiveLibrary[Framework](/categories/framework)

beberlei/doctrine2-symfony2-workshop
====================================

A Doctrine2 Workshop application in combination with Symfony2

0451PHP

Since Jul 18Pushed 12y agoCompare

[ Source](https://github.com/beberlei/doctrine-symfony-workshop)[ Packagist](https://packagist.org/packages/beberlei/doctrine2-symfony2-workshop)[ RSS](/packages/beberlei-doctrine2-symfony2-workshop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Doctrine2 with Symfony2 Workshop
================================

[](#doctrine2-with-symfony2-workshop)

This repository hosts a Symfony2 application used for Doctrine2 workshops. It is a derivation of the Symfony Standard Distribution that is explicitly build for teaching Doctrine2 in a Symfony2 application.

Installation
------------

[](#installation)

When you have trouble intalling this application before a workshop, send an email to `contact@qafoo.com` with your errors/problems and we try to help you.

If you don't have Composer installed, go to: Install Composer as described.

If you have Composer installed on your machine, go into your working directory and call depending on:

```
composer create-project beberlei/doctrine2-symfony2-workshop doctrine-ws dev-master --prefer-dist

```

or

```
php composer.phar create-project beberlei/doctrine2-symfony2-workshop doctrine-ws dev-master --prefer-dist

```

This will create a new project with this application and download all the dependencies.

### Composer during Workshop and Github Limitations

[](#composer-during-workshop-and-github-limitations)

If you are executing the composer installation during the workshop, it is possible Github limits the amount of calls through Composer by IP address. You have to create an OAuth token to continue:

1. Create a Github account if you don't have one yet
2. From the Commandline call:

    ```
     curl -u 'your_github_user' -d '\{"note":"Workshop"\}' https://api.github.com/authorizations

    ```
3. Update your composer.json with the Token in the result:

    ```
     {
         "config": {
             "github-oauth": {
                 "github.com":"tokenhere"
             }
         }
     }

    ```

Database Configuration
----------------------

[](#database-configuration)

By default this example application will use SQLite as a database. To configure another database to use during the workshop go to `app/config/config.yml`and change the configuration as explained in the file. You can uncomment the specific sections for MySQL or PostgreSQL to change the database.

Setup Webserver
---------------

[](#setup-webserver)

Unless you have PHP 5.4 installed, you have to setup a webserver like Apache or Nginx to serve your project.

With PHP 5.4 starting your Symfony application is as simple as calling:

```
php app/console server:run

```

If you don't have PHP 5.4 yet make sure to change your `/etc/hosts`file to contain a rule `127.0.0.1 sf2demo`

### Apache

[](#apache)

Put the following into `/etc/apache2/sites-enabled/sf2demo` or the Windows equivalent folder where your Apache Vhosts are located:

```

    ServerName sf2demo

    DocumentRoot /path/to/project/web

        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow From all

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*)$ /index.php [QSA,L]

```

### Nginx

[](#nginx)

Put the following into `/etc/nginx/sites-enabled/sf2demo`:

```
server {
    listen       *:80;
    server_name   sf2demo;

    set $index "index.php";

    root   /path/tp/project/web;
    index  $index;

    if (-f $request_filename) {
        break;
    }

    if (!-e $request_filename) {
        rewrite ^(.+)$ /$index$1 last;
        break;
    }
}

```

Important Note
--------------

[](#important-note)

This application is only for workshop purposes, it is neither secure nor sanely configured production usage.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (27 commits)")

### Embed Badge

![Health badge](/badges/beberlei-doctrine2-symfony2-workshop/health.svg)

```
[![Health](https://phpackages.com/badges/beberlei-doctrine2-symfony2-workshop/health.svg)](https://phpackages.com/packages/beberlei-doctrine2-symfony2-workshop)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
