unrivaledir / composer-hello-world
This is a simple package for starting packaging on composer
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/unrivaledir/composer-hello-world
Requires
- php: ^8.3
README
A simple PHP package to demonstrate how to create and publish a Composer package.
Installation
composer require unrivaledir/composer-hello-world
How to run?
- First run :
composer dump-autoload
- then create
index.phpfile. insert this code and run it:
<?php
use App\ComposerHelloWorldClass as MyClass;
require_once __DIR__ . '/vendor/autoload.php';
$myClass = new MyClass();
echo $myClass->sayHello();
- Finally
php -S localhost:8000
License
This code published under GPL-3.0-or-later license.