PHPackages                             marcojetson/quark - 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. [Framework](/categories/framework)
4. /
5. marcojetson/quark

ActiveLibrary[Framework](/categories/framework)

marcojetson/quark
=================

Another dependency injection container

07PHP

Since May 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Quark
=====

[](#quark)

Another dependency injection container

[![Build status](https://camo.githubusercontent.com/174282d490ca7a2bff5c7bd82187301a127b504fa0e32a1fe66d7d01f7f18735/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5048502d44492f496e766f6b65722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/marcojetson/quark)[![Test coverage](https://camo.githubusercontent.com/5d459dc0fb367659b3a02a10505f89461b0d93fb5f7a3b7bbf0c6248eeab4c8c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6172636f6a6574736f6e2f717561726b2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/marcojetson/quark/coverage)

Services
--------

[](#services)

Register services using *set* and providing an identifier and a factory

```
$application->set('service', function () {
    return new stdClass();
});
```

Access the service anywhere in your application

```
$service = $application->service;
```

If you want to share the same instance across your application use *share*

```
$application->share('service', function () {
    return new stdClass();
});
```

You can provide arguments for your services

```
$application->set('person', function ($name) {
    $person = new stdClass();
    $person->name = $name;

    return $person;
});

$person = $application->person('Marco');
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![marcojetson](https://avatars.githubusercontent.com/u/408194?v=4)](https://github.com/marcojetson "marcojetson (8 commits)")

### Embed Badge

![Health badge](/badges/marcojetson-quark/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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