marko/core

Marko Framework Core

Maintainers

Package info

github.com/marko-php/marko-core

pkg:composer/marko/core

Statistics

Installs: 9

Dependents: 60

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 19:36 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:49 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