Download the PHP package myaghobi/f3-migrations without Composer

On this page you can find all versions of the php package myaghobi/f3-migrations. 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 f3-migrations

F3-Migrations

F3-Migrations is a database helper plugin for the Fat-Free Framework. It's something like version control for the sql databases. Every time you have to make some changes manually in your database, you can make a MigrationCase, and the plugin will handle that.

Installation

If you use composer, run the below code:

For manual installation:

  1. Copy the content of lib/ folder into your lib/ folder.
  2. Install Schema Builder as mentioned in its documentation.
  3. Install Html2Text, by placing the html2text.php inside of a folder named html2text in your lib/.

Operation and basic usage

The plugin provides a simple web interface, consists of 4 routes that will auto add to your app:

Also, it will create a table in your database named migrations to handle migrations.

Instantiate

Instantiate the Migrations class before f3->run(). The plugin works if DEBUG>=3, otherwise, it goes disable because of security issues and to get no resource usage. To work with Migrations you need an active SQL connection:

First migration

  1. Make sure the path of your cases directory be exists and secure.
  2. Call yourAppPublicUrl/migrations in browser.
  3. Use makecase action to make your first migration case.
  4. Call migrate action.

Config

This plugin is configurable via config file:

The above config is the default, you can ignore/remove each one you don't need to change.

Logging

You can find the logs of actions in migrations.log located in the LOGS folder.

CLI mode

Just run the below code:

Upgrade

  1. First update the plugin via composer or manually.
  2. Now the path of migration cases is relative to index.php, so make sure it be exists.
  3. Make a backup of your DB and migration cases.
  4. Call upgrademc action to update the old migration cases.

Finally call fresh action.

License

You are allowed to use this plugin under the terms of the GNU General Public License version 3 or later.

Copyright (C) 2021 Mohammad Yaghobi


All versions of f3-migrations with dependencies

PHP Build Version
Package Version
Requires bcosca/fatfree-core Version ^3.6
ikkez/f3-schema-builder Version ^2.2.4
html2text/html2text Version ^4.3.1
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 myaghobi/f3-migrations contains the following files

Loading the files please wait ....