Skip to content

tigoCaval/curriculum-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curriculum

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.

paypal paypal

Modeling

Click here to check out the database modeling

Introduction

Getting started

Starting with composer

  1. Install composer
  2. Download package: composer require tigo/curriculum
  3. 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