pragma-framework / core
The Pragma Core Module for Pragma Framework
Installs: 6 128
Dependents: 7
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 6
Open Issues: 10
Requires
- php: >=7.0
- ext-pdo: >=7.0
- webpatser/laravel-uuid: >4.0.1 || dev-master
Requires (Dev)
- phpunit/dbunit: ^3.0.3
- phpunit/php-timer: ^1.0.9
- phpunit/phpunit: 6.5.14
Suggests
- ext-pdo_mysql: >=7.0
- ext-pdo_pgsql: >=7.0
- ext-pdo_sqlite: >=7.0
- ext-pdo_sqlsrv: >=7.0
- pragma-framework/auth-session: Simple user authentication based on PHP Session
- pragma-framework/forms: Quickly build Forms with CSRF Protection
- dev-master
- v3.20.0
- v3.19.0
- v3.18.0
- v3.17.2
- v3.17.1
- v3.17.0
- v3.16.1
- v3.16.0
- v3.15.0
- v3.14.1
- v3.14.0
- v3.13.1
- v3.13.0
- v3.12.0
- v3.11.0
- v3.10.0
- v3.9.5
- v3.9.4
- v3.9.3
- v3.9.2
- v3.9.1
- v3.9.0
- v3.8.1
- v3.8.0
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.2
- v3.2.1
- v3.2.0
- 3.1.2
- v3.1.1
- v3.1.0
- v3.0.x-dev
- 3.0.2
- v3.0.1
- v3.0.0
- v2.1.1
- v2.1.0
- v2.0.x-dev
- v2.0.0
- v1.0.x-dev
- v1.0.0
- dev-revert-53-master
- dev-experimental/pgsql
- dev-experimental/qb-unescape
This package is auto-updated.
Last update: 2024-11-21 08:11:56 UTC
README
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
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/