Download the PHP package prom-cms/core without Composer
On this page you can find all versions of the php package prom-cms/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prom-cms/core
More information about prom-cms/core
Files in prom-cms/core
Informations about the package core
PromCMS Core project
This project contains essential parts of PromCMS.
TODOs
- [ ] Improve tests
- [ ] Add documentation (Partially done)
- [x] Migrate to Doctrine
- [ ]
Migrate to illuminate/database models and still use SleekDBCreate SleekDB Adapter into Doctrine - [ ] Improve twig rendering
- [x] Improve events
- [ ] Provide better international experience
- [x] Add twig function/tags/filters
- [ ] Rethink intl on models (should that info be on models itself?)
- [x] Support MySQL in custom models
- Perhaps support Illuminate/Database again by creating package that adds SleekDB as a db driver
FAQ
and HOW TOs
What functions/filters/helpers/etc are accessible in Twig?
How can I access services or other objects provided by PromCMS?
Services are stored in PSR Container by PromCMS. In fact, PromCMS sets those objects and subscribes to them internally from the container.
Let's look at this example code that can be placed inside <your app root>/src/bootstrap.php
:
What services does PromCMS expose?
PromCMS exposes a variety of services and objects that help you with creating your project. Each item has its own documentation page (or even PHPDoc) that you can access by clicking on each item
JWTService::class
ImageService::class
FileService::class
LocalizationService::class
SchemaService::class
RenderingService::class
Session::class
Logger::class
What possible .env options can I set, how can I access them and what they control?
Every PromCMS should have secrets stored in .env. PromCMS stores known configuration in PromCMS\Core\Config which is accessible through PSR Container (see this section for more)
Known keys
APP_ENV
SECURITY_SESSION_LIFETIME
SECURITY_TOKEN_LIFETIME
APP_DEBUG
MAIL_HOST
MAIL_PORT
MAIL_USER
MAIL_PASS
MAIL_ADDRESS
SYSTEM_LOGGING_PATHNAME
Describes the relative path to where should Logger
log.
- type:
string|null
- default:
null
- example:
SYSTEM_LOGGING_PATHNAME="./.temp/app.log"
All versions of core with dependencies
slim/slim Version 4.*
guzzlehttp/psr7 Version ^2
guzzlehttp/guzzle Version ^7.4
php-di/php-di Version ^7
rakibtg/sleekdb Version ^2.13
bryanjhv/slim-session Version ^4.0
league/flysystem Version ^3.15
firebase/php-jwt Version ^6.8
paragonie/sodium_compat Version ^1.17
phpmailer/phpmailer Version ^6.6
symfony/dotenv Version ^6
illuminate/support Version ^10.21
rakit/validation Version ^1.4
slim/twig-view Version ^3.3
twig/html-extra Version ^3.7