Search by

marko / core

markshust

Marko Framework Core

Package info

github.com/marko-php/marko-core

pkg:composer/marko/core

Statistics

Installs: 2 573

Dependents: 92

Suggesters: 0

Stars: 0

0.11.0 2026-10-06 15:11 UTC

README

The foundation of Marko---provides dependency injection, modules, plugins, events, and preferences so you can extend any class without modifying its source.

Installation

composer require marko/core

Most applications install this via marko/framework.

Quick Example

use Marko\Core\Attributes\Preference;

#[Preference(replaces: OriginalService::class)]
class MyService extends OriginalService
{
    public function doSomething(): string
    {
        return 'custom behavior';
    }
}

Documentation

Full usage, API reference, and examples: marko/core