Skip to content

Tutorial project to showcase how to use doctrine, divorced from any framework

Notifications You must be signed in to change notification settings

vuhl/doctrine-blog

Repository files navigation

Doctrine Tutorial

Awesome stuff be coming

Setup

  • Install composer
  • From the project root: ``composer install --dev`
  • Run php ./vendor/bin/phpunit.php -c test/phpunit.xml to run the tests
  • copy setyp/doctrine.localhost.blog to your apache configuration and replace {YOUR DOC ROOT} with wherever you cloned this project to. Restart apache.
  • navigate to http://doctrine.localhost.blog

Linux Instructions

Max OSX Instructions

Windows Instructions

First off you will need to install PHP for windows. XAMPP is one option along these lines but the core capability is you MUST be able to run php from the commandline.

Install phpunit

  • open up a command prompt in administrative mode
  • pear channel-discover pear.phpunit.de
  • pear install phpunit/PHPUnit

Install Ruby

  • Download and install from rubyinstaller.org
  • Add the ruby bin directory to your path, verify you can run gem from the commandline by running gem install capistrano
  • Install the Devkit as well, following the instructions here

Now install guard-phpunit

C:\Projects\php-tdd-exercise> gem install guard-phpunit

Run the following command to create the database

vendor/bin/doctrine orm:schema-tool:create

About

Tutorial project to showcase how to use doctrine, divorced from any framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published