PHPackages                             prom-cms/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. prom-cms/core

ActiveLibrary

prom-cms/core
=============

Core for PromCMS

v1.2.1(2y ago)1546↓91.7%1[3 issues](https://github.com/PromCMS/Core/issues)[4 PRs](https://github.com/PromCMS/Core/pulls)MITPHPPHP &gt;=8.0

Since Aug 13Pushed 1y agoCompare

[ Source](https://github.com/PromCMS/Core)[ Packagist](https://packagist.org/packages/prom-cms/core)[ RSS](/packages/prom-cms-core/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (10)Dependencies (17)Versions (57)Used By (0)

PromCMS Core project
====================

[](#promcms-core-project)

This project contains essential parts of PromCMS.

TODOs
-----

[](#todos)

1. Improve tests
2. Add documentation (Partially done)
3. Migrate to Doctrine
4. Migrate to illuminate/database models and still use SleekDB Create SleekDB Adapter into Doctrine
5. Improve twig rendering
6. Improve events
7. Provide better international experience
    1. Add twig function/tags/filters
    2. Rethink intl on models (should that info be on models itself?)
8. Support MySQL in custom models
    - Perhaps support Illuminate/Database again by creating package that adds SleekDB as a db driver

`FAQ` and `HOW TOs`
===================

[](#faq-and-how-tos)

What functions/filters/helpers/etc are accessible in Twig?
----------------------------------------------------------

[](#what-functionsfiltershelpersetc-are-accessible-in-twig)

How can I access services or other objects provided by PromCMS?
---------------------------------------------------------------

[](#how-can-i-access-services-or-other-objects-provided-by-promcms)

Services are stored in [PSR Container](https://www.php-fig.org/psr/psr-11/) 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 `/src/bootstrap.php`:

```
use PromCMS\Core\Config;

return function (App $app) {
  // Access PSR container
  $container = $app->getContainer();

  // Now you can access whatever - for example Config! It`s fully "type-safe" ;)
  $config = $container->get(Config::Class);

  // Now you can use it normally (this is boolean which has true if current .env does not have environment specified or has development value)
  echo $config->env->development;
}
```

### What services does PromCMS expose?

[](#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`](./src/Services/JWTService.php)
- [`ImageService::class`](./src/Services/ImageService.php)
- [`FileService::class`](./src/Services/FileService.php)
- [`LocalizationService::class`](./src/Services/LocalizationService.php)
- [`SchemaService::class`](./src/Services/SchemaService.php)
- [`RenderingService::class`](./src/Services/RenderingService.php)
- [`Session::class`](./src/Session.php)
- [`Logger::class`](./src/Logger.php)

What possible .env options can I set, how can I access them and what they control?
----------------------------------------------------------------------------------

[](#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](#how-can-i-access-services-or-other-objects-provided-by-promcms) for more)

### Known keys

[](#known-keys)

#### `APP_ENV`

[](#app_env)

#### `SECURITY_SESSION_LIFETIME`

[](#security_session_lifetime)

#### `SECURITY_TOKEN_LIFETIME`

[](#security_token_lifetime)

#### `APP_DEBUG`

[](#app_debug)

#### `MAIL_HOST`

[](#mail_host)

#### `MAIL_PORT`

[](#mail_port)

#### `MAIL_USER`

[](#mail_user)

#### `MAIL_PASS`

[](#mail_pass)

#### `MAIL_ADDRESS`

[](#mail_address)

#### `SYSTEM_LOGGING_PATHNAME`

[](#system_logging_pathname)

Describes the relative path to where should [`Logger`](./src/Logger.php) log.

- type: `string|null`
- default: `null`
- example: `SYSTEM_LOGGING_PATHNAME="./.temp/app.log"`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 99.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~0 days

Total

51

Last Release

1069d ago

Major Versions

v0.8.4 → v1.0.02023-09-02

PHP version history (2 changes)v0.0.1PHP &gt;=7.0

v0.8.4PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa13060a285a1e0e269ed5424c3aab706d61c454029819bc65c148d98161d4a5?d=identicon)[ondrej-langr](/maintainers/ondrej-langr)

---

Top Contributors

[![ondrej-langr](https://avatars.githubusercontent.com/u/60289583?v=4)](https://github.com/ondrej-langr "ondrej-langr (229 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prom-cms-core/health.svg)

```
[![Health](https://phpackages.com/badges/prom-cms-core/health.svg)](https://phpackages.com/packages/prom-cms-core)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

65147.9k149](/packages/oat-sa-tao-core)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M647](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

293.1k](/packages/eslazarev-wildberries-sdk)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
