Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/remarkablemark/composer-template

:elephant: Composer package template
https://github.com/remarkablemark/composer-template

composer package php template

Last synced: 2 days ago
JSON representation

:elephant: Composer package template

Awesome Lists containing this project

README

        

# composer-template

[![packagist](https://img.shields.io/packagist/v/remarkablemark/composer-template)](https://packagist.org/packages/remarkablemark/composer-template)
[![test](https://github.com/remarkablemark/composer-template/actions/workflows/test.yml/badge.svg)](https://github.com/remarkablemark/composer-template/actions/workflows/test.yml)

Composer package template

## Requirements

PHP >=7

## Install

Install with [Composer](http://getcomposer.org/):

```sh
composer require remarkablemark/composer-template
```

## Usage

Autoload:

```php
require_once 'vendor/autoload.php';
```

Use namespace:

```php
use Remarkablemark\ComposerTemplate\ClassExample;

$example = new ClassExample();
echo $example->say(); // 'Hello, world!'
```

Or instantiate class:

```php
$example = new \Remarkablemark\ComposerTemplate\ClassExample();
echo $example->say('Mark'); // 'Hello, Mark!'
```

## License

[MIT](LICENSE)