Skip to content
Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP
PHP XSLT Other
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
documentation
src/Propel
tests
tools
.gitignore
.travis.yml
LICENSE
README.md
UPDATE.md
autoload.php.dist
composer.json
composer.lock
phpunit.xml.dist
pom.xml.dist

README.md

Propel2 

Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.3.

Requirements

Propel2 uses the following Symfony2 Components:

Propel2 also relies on Composer to manage dependencies but you also can use ClassLoader (see the autoload.php.dist file for instance).

Propel2 is only supported on PHP 5.3.3 and up.

Installation

Read the Propel documentation.

Contribute

Everybody can contribute to Propel2. Just fork it, and send Pull Requests. You have to follow Propel2 Coding Standards and provides unit tests as much as possible.

Note: you can fix checkstyle before to submit a Pull Request by using the Symfony2 check_cs script. You just need to install Finder and the script:

git clone git://github.com/symfony/Finder.git vendor/Symfony/Component/Finder

wget https://raw.github.com/symfony/symfony/master/check_cs

Then use it:

php check_cs fix

Unit Tests

To run unit tests, you'll have to install vendors by using Composer. If you don't have an available composer.phar command, just download it:

wget http://getcomposer.org/composer.phar

Then, install dependencies:

php composer.phar install

Create the mysql databases to insert fixtures

mysqladmin -uroot create test
mysqladmin -uroot create reverse_bookstore
mysqladmin -uroot create bookstore_schemas
mysqladmin -uroot create contest
mysqladmin -uroot create second_hand_books

If phing is not in your path add:

export PHING_COMMAND=/YourPath/Propel2/vendor/phing/bin/phing

Once done, build fixtures:

php bin/propel test:prepare

Now you can run the test suite by running:

phpunit

You'll need to create a database named test, and four schemas: reverse_bookstore, bookstore_schemas, contest and second_hand_books. Note, MySQL doesn't differentiate databases and schemas.

License

See the LICENSE file.

Something went wrong with that request. Please try again.