Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 647 Bytes

File metadata and controls

30 lines (21 loc) · 647 Bytes

Marko Core

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