Download the PHP package morningtrain/wp-database without Composer
On this page you can find all versions of the php package morningtrain/wp-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download morningtrain/wp-database
More information about morningtrain/wp-database
Files in morningtrain/wp-database
Package wp-database
Short Description Laravel Eloquent and Migrations for WordPress
License MIT
Informations about the package wp-database
Morningtrain\WP\Database
A Morningtrain package that implements Laravel Eloquent and Migrations into WordPress.
Table of Contents
- Introduction
- Getting Started
- Installation
- Dependencies
- illuminate/database
- Usage
- Initializing package
- Creating a Model
- Creating a Migration
- Running migrations
- Credits
- Testing
- License
Introduction
Getting Started
To get started install the package as described below in Installation.
To use the tool have a look at Usage
Installation
Install with composer
Dependencies
illuminate/database
Usage
Initializing package
If you want to use migrations from multiple directories you can do, by calling the setup method multiple times.
Creating a Model
In app/Models
Creating a Migration
If there is multiple migration paths, you will be asked to choose one.
Will create a new migration file for you with Schema::create('foo')
already prepared.
Running migrations
You can run all new migrations like so:
Using wp cli
:
Using php
:
Credits
- Mathias Munk
- Martin Schadegg Brønniche
- All Contributors
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of wp-database with dependencies
illuminate/pagination Version ^8.83|^9.5
illuminate/events Version ^8.83|^9.5
illuminate/filesystem Version ^8.83|^9.5
morningtrain/php-loader Version ^0.3.3
doctrine/dbal Version ^3.6