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

ActiveLibrary

congraph/core
=============

v2.0.3(1mo ago)22495MITPHPPHP ^8.3 || ^8.4 || ^8.5

Since Apr 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/congraphcms/core)[ Packagist](https://packagist.org/packages/congraph/core)[ RSS](/packages/congraph-core/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (16)Versions (11)Used By (5)

congraph/core
=============

[](#congraphcore)

`congraph/core` is the foundation package for the Congraph ecosystem.

Responsibilities
----------------

[](#responsibilities)

- command bus and command validation dispatching
- data transfer objects (`Model`, `Collection`, and related helpers)
- exception types
- mapping and resolution helpers
- shared service provider and framework integration points

Most other Congraph packages depend on `core`.

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

[](#installation)

```
composer require congraph/core congraph/contracts
```

Laravel package provider:

- [CoreServiceProvider.php](/Users/nikolap/git/np/congraph/packages/core/CoreServiceProvider.php)

Key concepts
------------

[](#key-concepts)

### Command bus

[](#command-bus)

Congraph uses command classes for operations such as:

- create
- update
- delete
- fetch
- get

`CommandDispatcher` performs:

1. before-command events
2. validator resolution
3. command handling
4. after-command events

### DTO layer

[](#dto-layer)

The `Model` and `Collection` DTOs are used across packages for predictable API and repository output.

### Exceptions

[](#exceptions)

Important exception families include:

- validation failures
- not found failures
- bad request failures

These are intentionally mapped by `laravel-api` into HTTP exceptions.

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
cd /Users/nikolap/git/np/congraph/packages/core
composer update -W
```

### Run tests

[](#run-tests)

```
composer test
```

Contribution notes
------------------

[](#contribution-notes)

- changes here affect the whole monorepo
- preserve backwards-compatible DTO behavior when possible
- add tests for command dispatch, validation mapping, and DTO normalization
- if you touch event naming or exception mapping, re-test dependent packages

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance93

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 57.1% 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 ~668 days

Recently: every ~284 days

Total

7

Last Release

33d ago

Major Versions

0.1.0-alpha → v1.0beta2018-07-31

v1.1.0 → v2.0.02026-04-11

PHP version history (4 changes)0.1.0-alphaPHP &gt;=5.4.0

v1.0.0PHP ^8.1.0

v1.1.0PHP ^8.2.0

v2.0.0PHP ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

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

---

Top Contributors

[![nikolaplavsic](https://avatars.githubusercontent.com/u/3585404?v=4)](https://github.com/nikolaplavsic "nikolaplavsic (4 commits)")[![veljamatic](https://avatars.githubusercontent.com/u/1091355?v=4)](https://github.com/veljamatic "veljamatic (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)

PHPackages © 2026

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