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

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

coreplex/core
=============

A collection of core classes for the coreplex packages.

v0.1.3(10y ago)01.4k↓100%2MITPHPPHP &gt;=5.4.0

Since Sep 20Pushed 10y ago3 watchersCompare

[ Source](https://github.com/coreplex/core)[ Packagist](https://packagist.org/packages/coreplex/core)[ RSS](/packages/coreplex-core/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (2)

Core [![Build Status](https://camo.githubusercontent.com/48bf5febb27fcd9779dee1fe8d7460d1b90adf1aaeba4652851f145a0f9dc644/68747470733a2f2f7472617669732d63692e6f72672f636f7265706c65782f636f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/coreplex/core) [![Latest Stable Version](https://camo.githubusercontent.com/b4bc312bab44ce2f811608236dc628c0423b34b0f05c80c3abede823342b863a/68747470733a2f2f706f7365722e707567782e6f72672f636f7265706c65782f636f72652f762f737461626c65)](https://packagist.org/packages/coreplex/core) [![License](https://camo.githubusercontent.com/f637162e0004e6c321314c06141190a8a2f7cd37dfd6cab4f72dd68497b6919e/68747470733a2f2f706f7365722e707567782e6f72672f636f7265706c65782f636f72652f6c6963656e7365)](https://packagist.org/packages/coreplex/core)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#core---)

A collection of core classes for the coreplex packages.

- [Installation](#installation)
    - [Laravel 5 Integration](#laravel-5-integration)
- [Using the Renderer](#using-the-renderer)
    - [Rendering Templates](#rendering-templates)
- [Using the Session](#using-the-session)
    - [Add Item](#add-item)
    - [Getting Items](#getting-items)
    - [Removing Items](#removing-items)

Installation
------------

[](#installation)

This package requires PHP 5.4+, and includes a Laravel 5 Service Provider.

We recommend installing the package through composer. You can either call `composer require coreplex/core` in your command line, or add the following to your `composer.json` and then run either `composer install` or `composer update`to download the package.

```
"coreplex/core": "~0.1"
```

### Laravel 5 Integration

[](#laravel-5-integration)

To use the package with Laravel 5 firstly add the core service provider to the list of service providers in `app/config/app.php`.

```
'providers' => array(

  Coreplex\Core\CoreServiceProvider::class,

);
```

The publish the config file by running `php artisan vendor:publish`.

Using the Renderer
------------------

[](#using-the-renderer)

To get started with the renderer, firstly you need to initialise the class.

```
$renderer = new Coreplex\Core\Renderer\Renderer();
```

To access the renderer from laravel just access it via the IOC container by its contract or its alias.

```
public function __construct(Coreplex\Core\Contracts\Renderer $renderer)
{
    $this->renderer = $renderer;
}

$renderer = app('coreplex.core.renderer');
```

### Rendering Templates

[](#rendering-templates)

To render a view to a string call the `make` method on the renderer. You can also pass dynamic data to the view by passing an array of key value pairs as a second parameter.

```
$view = $renderer->make('path/to/view.php');
$view = $renderer->make('path/to/view.php', ['foo' => 'bar']);
```

Using the Session
-----------------

[](#using-the-session)

To get started with the session class with firstly need to initialise it.

```
$config = require('path/to/coreplex.php');

$session = new Coreplex\Core\Session\Native($config);
```

Or with laravel just resolve it from the IOC container.

```
public function __construct(Coreplex\Core\Contracts\Session $session)
{
    $this->session = $session;
}

$session = app('coreplex.core.session');
```

### Add Item

[](#add-item)

To add an item to the session use the `put` method.

```
$session->put('foo', 'bar');
```

Or to flash an value for the next request use the `flash` method.

```
$session->flash('foo', 'bar');
```

### Getting Items

[](#getting-items)

To get an item from the session use the `get` method.

```
$session->get('foo');
```

You may also want to check if an item exists in the session; to do so use the `has` method.

```
$session->has('foo');
```

### Removing Items

[](#removing-items)

To remove an item from the session use the `forget` method.

```
$session->forget('foo');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3891d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df807d0371b1b265ea1becedfa4001428f278e7632c6d175e2afb2921f5788a3?d=identicon)[michaeljennings](/maintainers/michaeljennings)

---

Top Contributors

[![michaeljennings](https://avatars.githubusercontent.com/u/5189701?v=4)](https://github.com/michaeljennings "michaeljennings (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[laracasts/cypress

Laravel Cypress Boilerplate

6273.2M4](/packages/laracasts-cypress)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8944.9k](/packages/talyssonoc-react-laravel)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[emcconville/point-reduction-algorithms

A collection of algorithms for reducing the number of points in polyline

61196.1k1](/packages/emcconville-point-reduction-algorithms)[heyday/silverstripe-menumanager

Allows complex menu management to be handled through the CMS when a simple tree structure is not enough.

36304.4k7](/packages/heyday-silverstripe-menumanager)

PHPackages © 2026

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