PHP Classes

Trigves ARM Laravel: Create database tables from array for Laravel

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 48 All time: 10,739 This week: 455Up
Version License PHP version Categories
trigves-arm-laravel 1.0.1The PHP License5PHP 5, Databases, Libraries
Description 

Author

This class can create database tables from array for Laravel.

It can register the Arm class as service provider for Laravel Illuminate.

The Arm class can takes an array with the definition of database tables and executes SQL statements to install the defined tables in MySQL database using MySQLi.

Picture of Trigve Hagen
Name: Trigve Hagen <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 4273543 in United States United States
Week rank: 192 Up22 in United States United States Up

Documentation

trigves-arm-laravel

This is a Rapid Application Development tool designed to speed up the work flow by taking out the need to run back and forth from the database. It works on database tables and rows by mapping a multidementional array to the relational database the same way an Orm maps an object. Once installed you call a function that checks for new row names or missing row names in the tablesArray. If updates are needed it does them automatically relieving the need to go back and forth to the database every time you add a new row or table. This branch is for Laravel projects.

YOU REALLY HAVE TO WATCH WHEN YOU ARE CREATING YOUR TABLES AND FIELDS * WHEN FIRST PUT INTO USE IT WILL ERASE ANYTHING DONE BEFORE IT AND CREATE A SAMPLE USER DATABASE * NAMING TWO ROWS THE SAME WILL HALT EXECUTION AND CREATE AN ERROR * NAMING TWO TABLES THE SAME WILL HALT EXECUTION AND CREATE AN ERROR * STICK TO LOWER CASE IN THE SECTIONS THAT HAVE LOWER CASE AND ONLY USE UPPER CASE WHEN TYPING THE ROW

I take no responsibility for lost data! Use at your risk. Happy Coding!!

INSTALLATION 1) Place Development folder in the app directory. 2) Place the ArmServiceProvider.php in the app/Providers directory. 3) Place 'App\Providers\ArmServiceProvider::class,' in the providers array in config/app 4) Add App::make('App\Development\Arm')->ArmCheckTables(); in the routes/web.php about all routes. 5) Create the table in phpmyadmin and fill in your .env variables.

-- or -- 1) Go to root of Laravel Installation and run composer require trigves/arm 2) Publish and adjust the tablesArray in Arm.php

3/10/2017 - updates * added support for adding multiple rows in a table that are next to each other. * added support for droping unneeded tables - just erase them from the array.

3/13/2017 - updates * added support for changing row names * added error reporting


  Files folder image Files (3)  
File Role Description
Files folder imageapp (2 directories)
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (3)  /  app  
File Role Description
Files folder imageDevelopment (1 file)
Files folder imageProviders (1 file)

  Files folder image Files (3)  /  app  /  Development  
File Role Description
  Plain text file Arm.php Class Class source

  Files folder image Files (3)  /  app  /  Providers  
File Role Description
  Plain text file ArmServiceProvider.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:48
This week:0
All time:10,739
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2402