Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/remarkablemark/composer-template
- Owner: remarkablemark
- License: mit
- Created: 2023-12-10T03:03:23.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-02T15:08:07.000Z (2 months ago)
- Last Synced: 2024-10-11T15:13:02.589Z (26 days ago)
- Topics: composer, package, php, template
- Language: PHP
- Homepage: https://packagist.org/packages/remarkablemark/composer-template
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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)