felixdorn/call-method

1.0.0 2021-05-16 09:02 UTC

This package is auto-updated.

Last update: 2024-12-16 16:53:35 UTC


README

Tests Formats Version Total Downloads License

Installation

Requires PHP 8.0.0+

You can install the package via composer:

composer require felixdorn/call-method

Usage

class BladeViewCompiler {
    protected function compileComponentString(string $value): string {
        return $value;
    }
}

$compiler = new BladeViewCompiler();

call($compiler, 'compileComponentString', 'value'); // returns "value"

Testing

composer test

call-method was created by Félix Dorn under the MIT license.