Download the PHP package kenny1911/doctrine-views-sync without Composer

On this page you can find all versions of the php package kenny1911/doctrine-views-sync. 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 doctrine-views-sync

Doctrine Views Sync

[ English | Русский ]

Doctrine Views Sync is a lightweight utility for managing database views in Doctrine-based projects. It allows you to synchronize or drop all views via console commands.

Installation

Install the package via Composer:

Usage

Two console commands are available:

Drop all views

Drops all views in the database that are defined in your project.

Synchronize views

Synchronizes all views — recreates them based on the current application state.

Requirements

Configuration

Symfony Framework

Example Symfony configuration using a single Doctrine connection.

Basic service registration and command wiring:

Services implementing the Kenny1911\DoctrineViewsSync\ViewsProvider interface must be tagged with doctrine.views_provider.

The doctrine.views_provider.locator service is a PSR container where the connection name is used as the key, and the corresponding ViewsProvider as the value.

In the doctrine.views.ignored parameter specifies a list of database views that should be ignored. Regular view names, glob patterns, and regular expressions are supported.

If you only use a single connection, you can use the Kenny1911\DoctrineViewsSync\Psr\Container\SingleValueContainer.
For multiple connections, consider using Kenny1911\DoctrineViewsSync\Psr\Container\MapContainer
or the Symfony Tagged Locator.

Example ViewsProvider implementation:

Development

Tests will run with in-memory sqlite db by default.

If you want to run tests with other dbms, set environment variable DATABASE_URL.

File docker-compose.yml contains prepared settings for different dbms. You must run database servers before run tests and down after tests was passed.

Running tests example:

License

MIT


All versions of doctrine-views-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/dbal Version ^3.0 || ^4.0
doctrine/persistence Version ^3.1|^4.0
psr/container Version ^2.0
symfony/console Version ^5.4 || ^6.0 || ^7.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 kenny1911/doctrine-views-sync contains the following files

Loading the files please wait ....