Download the PHP package ariga/atlas-provider-doctrine without Composer

On this page you can find all versions of the php package ariga/atlas-provider-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 atlas-provider-doctrine

atlas-provider-doctrine

Load Doctrine entities into an Atlas project.

Use-cases

  1. Declarative migrations - use a Terraform-like atlas schema apply --env doctrine to apply your Doctrine schema to the database.
  2. Automatic migration planning - use atlas migrate diff --env doctrine to automatically plan a migration from the current database version to the Doctrine schema.

Requirements

Installation

Install Atlas from macOS or Linux by running:

See atlasgo.io for more installation options.

Install the provider by running:

Doctrine Console Command

If all of your Doctrine entities exist under single directory, you can add the atlas-provider command to the Doctrine Console file:

Then in your project directory, create a new file named atlas.hcl with the following contents:

As Symfony Bundle

If you are using a Symfony project, you can use the provider as a Symfony bundle.

add the following bundle to your config/bundles.php file:

Then in your project directory, create a new file named atlas.hcl with the following contents:

As PHP Script

If you have multiple folders with Doctrine entities, you might want to use the provider as a PHP script.

create a new file named atlas.php with the following contents:

Then in your project directory, create a new file named atlas.hcl with the following contents:

Usage

Once you have the provider installed, you can use it to apply your Doctrine schema to the database:

Apply

You can use the atlas schema apply command to plan and apply a migration of your database to your current Doctrine schema. This works by inspecting the target database and comparing it to the Doctrine schema and creating a migration plan. Atlas will prompt you to confirm the migration plan before applying it to the database.

Where the -u flag accepts the URL to the target database.

Diff

Atlas supports a version migration workflow, where each change to the database is versioned and recorded in a migration file. You can use the atlas migrate diff command to automatically generate a migration file that will migrate the database from its latest revision to the current Doctrine schema.

`

Supported Databases

The provider supports the following databases:

Issues

Please report any issues or feature requests in the ariga/atlas repository.

License

This project is licensed under the Apache License 2.0.


All versions of atlas-provider-doctrine with dependencies

PHP Build Version
Package Version
Requires doctrine/orm Version ^3
doctrine/dbal Version ^4
symfony/cache Version ^7
symfony/framework-bundle Version ^7
doctrine/doctrine-bundle Version ^2
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 ariga/atlas-provider-doctrine contains the following files

Loading the files please wait ....