Skip to content

Pragma Core Module for the Pragma Framework (ORM, Models, View, Controllers)

License

Notifications You must be signed in to change notification settings

pragma-framework/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

408 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core

Pragma Core Module for the Pragma Framework (ORM, Models, View, Controllers)

For a project skeleton using this module, see: https://github.com/pragma-framework/framework

stable packagist Build Status license

Installation

Using composer

$ composer require pragma-framework/core:dev-master

Auto-migrate database

Add in composer.json:

"scripts": {
	"post-package-install": [
		"Pragma\\Helpers\\Migrate::postPackageInstall"
	],
	"post-package-update": [
		"Pragma\\Helpers\\Migrate::postPackageUpdate"
	],
	"pre-package-uninstall": [
		"Pragma\\Helpers\\Migrate::prePackageUninstall"
	]
}

These scripts run DB migration for core and all associated plugins (ex: pragma-framework/historic, ...)

PostgreSQL & uidmysql

sudo su postgres -c "psql <db name> -c \"CREATE EXTENSION IF NOT EXISTS \\\"uuid-ossp\\\"\""

Run tests

$ vendor/bin/phpunit --bootstrap ./tests/bootstrap.config.sqlite.php tests/
$ vendor/bin/phpunit --bootstrap ./tests/bootstrap.config.mysql.php tests/

About

Pragma Core Module for the Pragma Framework (ORM, Models, View, Controllers)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages