PHPackages                             tekod/accent-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tekod/accent-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tekod/accent-core
=================

Core classes for all other AccentPHP packages.

1.0.3(2y ago)07.0k↓33.3%MITPHPPHP &gt;=7.0.0

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tekod/AccentCore)[ Packagist](https://packagist.org/packages/tekod/accent-core)[ Docs](https://gitlab.com/tekod/AccentPHP)[ RSS](/packages/tekod-accent-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

```
Accent core package
====================

Core package contains common classes required by all other Accent packages.

Classes for basic concepts (autoloader, Component, Service manager, Events,..)
are declared here.

There are following directories in this package:

 - ArrayUtils   - group of common utilities for dealing with arrays
 - Autoloader   - robust autoloading solution
 - Debug        - set of debugging tools
 - Event        - dispatching/listening system of events
 - File         - set of tools for dealing with files
 - Filter       - set of various security tools
 - Service mngr - service manager implementation
 - UTF          - utf-8 aware replacements for strlen, substr, strpos, strrpos, strtolower, strtoupper,...
 - Test         - contains unit tests, can be removed in production

Each directory has its own README.doc file with more detailed description of components and their usage.

Component class
===============
This class is ultimate ancestor of almost all other AccentPHP objects.

It defines some handful features like:
 - constructor options factory
 - error handling
 - plugins support
 - quick-access methods for few common services

RequestContext
==============
Because direct access to superglobals ($_SERVER, $_FILES, $_ENV,...) are
not permmited in Accent components they fetching that values from RequestContext.

Basically this is DTO with few fancy getters and setters.
Some normalization of values will be internaly performed after any setter operation.

Instance of this object is typically injected in constructor options of other objects
allowing them to reach emulated superglobals.

Stacker
=======
This is utility for making stack (collection) of objects of same type.
Stack mimics behaviour of these objects by passing all calls to object on top
so consumers are not aware of its real nature.

For example components have to fetch some data from RequestContext but within
sub-requests there must be stored different values.
Solution is to make Stacker object as service named something like 'GetRequestContext'
and push normal RequestContext object in it.
When subrequest arrives just push new RequestContext object in that service and all
components will receive new values.
Class Accent\Application\AbstractKernel doing exactly that.
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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 ~341 days

Total

4

Last Release

861d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/602ff9e427232acb63fd7cd90f1051fe590d87d1c53dbc0e70acc25c811cc7b9?d=identicon)[tekod](/maintainers/tekod)

---

Top Contributors

[![tekod](https://avatars.githubusercontent.com/u/7004448?v=4)](https://github.com/tekod "tekod (10 commits)")[![fws-miroslav](https://avatars.githubusercontent.com/u/73218473?v=4)](https://github.com/fws-miroslav "fws-miroslav (3 commits)")

---

Tags

accentaccentphpaccentcore

### Embed Badge

![Health badge](/badges/tekod-accent-core/health.svg)

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

###  Alternatives

[salmanzafar/laravel-geo-fence

A Laravel Library to calculate distance between two longitude and latitudes

157.3k1](/packages/salmanzafar-laravel-geo-fence)

PHPackages © 2026

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