edmondscommerce/doctrine-static-meta

An implementation of Doctrine using the PHP Static Meta Data driver and no annotations

6.6.0 2024-02-20 11:24 UTC

README

By Edmonds Commerce

Codacy Badge

Scrutinizer Code Quality

Code Intelligence Status

Maintainability

An implementation of Doctrine using the PHP Static Meta Data driver and no annotations.

This library includes extensive traits and interfaces and also full code generation allowing you to set up a project quickly.

Install

composer require edmondscommerce/typesafe-functions dev-master@dev
composer require gossi/php-code-generator "^0.5.0" --dev
composer require sebastian/diff ^3.0 --dev
composer require edmondscommerce/doctrine-static-meta dev-master@dev

Limitations

Whilst this is now at a stage where we are using it in production, it is still a work in progress.

  • Currently we have only targeted MySQL

Suggested .my.cnf File

As DSM is using binary ID columns, it is worth customising your .my.cnf file to make this easier to work with

[mysql]
auto-rehash
binary-as-hex = true                                                                                              
[client]
user=root
password=YOURPASSWORDHERE

Further Reading

Documentation is still very much a work in progress...

Have a look in the docs Folder