remarkablemark / composer-template
Composer template
Fund package maintenance!
remarkablemark
Patreon
Ko Fi
Liberapay
b.remarkabl.org/teespring
Requires
- php: >=7
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.65.0
- pestphp/pest: 1.23.1
This package is auto-updated.
Last update: 2024-11-25 15:47:30 UTC
README
Composer package template
Requirements
PHP >=7
Install
Install with Composer:
composer require remarkablemark/composer-template
Usage
Autoload:
require_once 'vendor/autoload.php';
Use namespace:
use Remarkablemark\ComposerTemplate\ClassExample; $example = new ClassExample(); echo $example->say(); // 'Hello, world!'
Or instantiate class:
$example = new \Remarkablemark\ComposerTemplate\ClassExample(); echo $example->say('Mark'); // 'Hello, Mark!'