Download the PHP package sprimault/ormeau-doctrine without Composer

On this page you can find all versions of the php package sprimault/ormeau-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ormeau-doctrine

πŸ‡«πŸ‡· FranΓ§ais

ormeau-doctrine

The Symfony bundle of Ormeau: it generates Doctrine entities from a legacy database, and regenerates them six months later without discarding the code written on them since.

Doctrine removed doctrine:mapping:import, and nothing official replaced it. Ormeau takes over a real legacy database β€” T_ prefixes, foreign keys never declared, booleans stored as char(1) β€” and produces associations where a literal translation would leave integer columns.

[!IMPORTANT] This repository is a read-only mirror of the php/ directory of sprimault/ormeau, rewritten on every merge. Issues, pull requests and documentation live in the main repository.

What it needs

The bundle does not read the database. It reads a logical layer produced by the ormeau binary, a single file to download from the releases, with nothing else to install. PostgreSQL or SQL Server, for instance:

ormeau inferer writes gescom.logique.json, and a decisions file where you settle what the tool cannot decide on its own.

Installation

One database per entities directory: files name their database, and another database does not overwrite them without --remplacer=<base>. Only what prevents the requested generation returns 1: a file from another database, or an unreadable PHP file under the entities directory. Skipped entities and diverging classes return 0.

The whole workflow β€” extracting the layer, inferring, arbitrating, generating β€” is described in the main README, and what each version changes in the changelog.

Verification

The bundle's tests run under five combinations of PHP, Symfony, Doctrine ORM and DBAL, from PHP 8.1 with Symfony 5.4 and ORM 2.14 to PHP 8.4 with Symfony 8 and ORM 3, and the entities generated for every reference case pass the mapping validator of the installed ORM. On the binary side, integration tests run against a real database server, never a simulated catalog, and the extraction of the test database is compared byte for byte with a reference layer. The whole chain β€” extraction, generation, schema:create in an empty database β€” is replayed under ORM 3 and ORM 2.14, and the recreated database compared with the original: each remaining difference is listed with its reason.

CI only confirms: every change first goes through the same full validation, on Windows and Linux machines, before it is pushed.

Where the name comes from

Ormeau β€” pronounced roughly or-MOH β€” is French for a young elm, and for the abalone, a shellfish whose shell is built from stacked layers of nacre. It also happens to begin with ORM, which is convenient for a tool that produces ORM entities.

The pivot format is called a calque, in the tracing-paper sense: a faithful copy of the catalogue, with no interpretation. In linguistics a calque is a structural borrowing from one language into another β€” English skyscraper becoming French gratte-ciel. That is precisely the operation: carrying the structure of a relational schema over into another language's type system.

License

Apache 2.0 β€” see LICENSE. The entities Ormeau generates are yours: the licence covers the tool, not its output.


All versions of ormeau-doctrine with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
nikic/php-parser Version ^5.0
symfony/console Version ^5.4 || ^6.4 || ^7.0 || ^8.0
symfony/framework-bundle Version ^5.4 || ^6.4 || ^7.0 || ^8.0
doctrine/orm Version ^2.14 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sprimault/ormeau-doctrine contains the following files

Loading the files please wait ...