PHPackages                             luminar-organization/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. luminar-organization/core

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

luminar-organization/core
=========================

The core package of Luminar PHP ecosystem, providing essential functionality and structure

0263PHP

Since Sep 6Pushed 1y agoCompare

[ Source](https://github.com/luminar-organization/core)[ Packagist](https://packagist.org/packages/luminar-organization/core)[ RSS](/packages/luminar-organization-core/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Luminar core
============

[](#luminar-core)

[![Tests Status](https://camo.githubusercontent.com/8873f3d70b412bd6b0dfd88787b1d02637cb2fb74c1bfbabeb437170f66515f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f636f72652f74657374732e796d6c3f6c6162656c3d5465737473)](https://camo.githubusercontent.com/8873f3d70b412bd6b0dfd88787b1d02637cb2fb74c1bfbabeb437170f66515f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f636f72652f74657374732e796d6c3f6c6162656c3d5465737473)

**Luminar Core** is the foundational package for the Luminar PHP framework, providing the providing essential functionality and core components needed to build applications.

Table of Contents
=================

[](#table-of-contents)

- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)

Introduction
============

[](#introduction)

Luminar Core is a PHP library that includes the core components of the Luminar framework. This package provides the service container, configuration management, event dispatching, and utility functions.

Features
--------

[](#features)

- **Service Container**: A powerful dependency injection container
- **Configuration Management**: Load and manage configuration files in YAML format.
- **Event Dispatching**: A flexible event system for handling application events.
- **Utility Functions**: Helpful functions for string manipulation and general utilities.

Installation
============

[](#installation)

You can install Luminar Core using Composer, Run the following command in your project directory:

```
composer require luminar-organization/core
```

Usage
=====

[](#usage)

### Service Container

[](#service-container)

Bind and resolve services using the `Container` class:

```
use Luminar\Core\Container\Container;

$container = new Container();

$container->bind('example', function() {
    return new \SomeClass();
});

$instance = $container->resolve('example');
```

### Configuration Management

[](#configuration-management)

Load configuration files and retrieve values:

```
use Luminar\Core\Config\Config;

$config = new Config('/path/to/config');

$value = $config->get('database.host', 'localhost');
```

### Event Dispatching

[](#event-dispatching)

Register and dispatch events using the `EventDispatcher` class:

```
use Luminar\Core\Events\EventDispatcher;

$dispatcher = new EventDispatcher();

$dispatcher->listen('event.name', function($data) {
    // Handle the event
});

$dispatcher->dispatch('event.name', $data);
```

### Utility Functions

[](#utility-functions)

Use helper and string utility functions:

```
use Luminar\Core\Support\Helpers;
use Luminar\Core\Support\Str;

$emailValid = Helpers::isValidEmail('test@example.com'); // Output will be boolean
$randomStr = Helpers::randomString(12); // Output will be random string length of 12 characters
$humanizedStr = Helpers::humanize('hello_world'); // Output will be Hello World

$snakeCase = Str::snakeCase('HelloWorld'); // Output will be hello_world
$camelCase = Str::camelCase('hello_world'); // Output will be helloWorld
$titleCase = Str::titleCase('hello world'); // Output will be Hello World
```

Testing
-------

[](#testing)

To run the tests, ensure you have installed all development requirements:

```
composer install
```

After that run all tests:

```
composer run test
```

This will execute all tests located in the `tests/` directory and provide feedback on the test results.

Contributing
------------

[](#contributing)

We welcome contributions to Luminar Core! Please follow these steps to contribute:

- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes and add tests if applicable
- Submit a pull request with a clear description of your changes

Please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file for more details

License
-------

[](#license)

Luminar Core is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information

---

For more information about Luminar, visit our [website](https://luminar-organization.github.io/) or [docs](https://projects-17.gitbook.io/luminar-organization/)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/90420828?v=4)[Patryk](/maintainers/PatrykMolenda)[@PatrykMolenda](https://github.com/PatrykMolenda)

---

Top Contributors

[![PatrykMolenda](https://avatars.githubusercontent.com/u/90420828?v=4)](https://github.com/PatrykMolenda "PatrykMolenda (16 commits)")

### Embed Badge

![Health badge](/badges/luminar-organization-core/health.svg)

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

###  Alternatives

[saumini/count

A Laravel Nova field.

30548.4k1](/packages/saumini-count)[xttribute/xttribute

XML to DTO, nicely!

6130.0k](/packages/xttribute-xttribute)[nejcc/php-datatypes

PHP Data types

812.5k1](/packages/nejcc-php-datatypes)

PHPackages © 2026

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