Download the PHP package laravel-enso/migrator without Composer

On this page you can find all versions of the php package laravel-enso/migrator. 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 migrator

Migrator

License Stable Downloads PHP Issues Merge Requests

Description

Migrator provides a structure-aware migration helper for Laravel Enso packages.

The package exposes an abstract migration base class that wraps permission creation and menu creation into the normal Laravel migration lifecycle. It is intended for Enso packages that need to register permissions and menu entries together with the database changes that introduce a new module or page.

Instead of duplicating the same permission and menu provisioning logic in each package, Enso migrations can declare a permission array, a menu payload, and an optional parent menu path, and let the package handle validation, creation, and rollback.

Installation

This package is normally installed as part of the Enso backend stack.

For standalone installation in an Enso-based application:

The package depends on:

Features

Usage

Extend LaravelEnso\Migrator\Database\Migration in a package migration:

When the migration runs:

When the migration rolls back:

API

Abstract Migration

LaravelEnso\Migrator\Database\Migration

Protected properties:

Lifecycle methods:

Both directions are executed inside a database transaction.

Permission Payload

Each permission entry must contain:

Behavior:

Menu Payload

The menu payload must contain:

Behavior:

Services

Main services:

Parent Menu Resolution

ParentMenu accepts a dot-notated menu chain such as:

It resolves the menu from the last segment upwards and throws when the full ancestry chain cannot be matched.

Exceptions

The package throws LaravelEnso\Migrator\Exceptions\EnsoStructure for:

Depends On

Required Enso packages:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of migrator with dependencies

PHP Build Version
Package Version
Requires laravel-enso/core Version ^12.0
laravel-enso/menus Version ^5.0
laravel-enso/permissions Version ^5.0
laravel-enso/roles Version ^5.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 laravel-enso/migrator contains the following files

Loading the files please wait ...