tigo / curriculum
migrate curriculum tables to database
Fund package maintenance!
www.paypal.com/donate?hosted_button_id=5PG6N2SFW2ZHL
www.paypal.com/donate?hosted_button_id=CDAV425UPG2E2
Requires
- php: >= 7.0
README
Migrate curriculum tables to database
- MIT license. Feel free to use this project. Leave a star ⭐ or make a fork !
- Download package:
composer require tigo/curriculum
If you found this project useful, consider making a donation to support the developer.
Modeling
Click here to check out the database modeling
Introduction
Getting started
Starting with composer
- Install composer
- Download package:
composer require tigo/curriculum
- PHP >= 7.0; Versions that have been tested: 7.3.23, 8.0.1 e 8.0.3.
Configure database
directory: src/Base/Interfaces/IConnect.php
The default configuration uses the sqlite database. You can choose to use mysql or sqlite.
/*const DATABASE = "mysql:"; const HOST = "host=localhost;"; const DBNAME = "dbname=name"; const USER = ""; const PASS = "";*/ const DATABASE = "sqlite:".__DIR__."../../database.db"; const HOST = ""; const DBNAME = ""; const USER = null; const PASS = null;
Somewhere in your project, you may need to use autoload
include __DIR__ ."/vendor/autoload.php";
Example: Migrating Tables to Database
use Tigo\Curriculum\Job\Curriculum; // import class $table = new Curriculum(); $table->sqlite(); //migrate sqlite tables $table->mysql(); //migrate mysql tables
Supporting this project
If you are interested in supporting this project, you can help in many ways. Leave a star ⭐ or make a donation of any value.
Sponsor supporting this project
- []
Contributors
License
MIT license. See the archive License