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

V1.0.0 2025-01-24 20:30 UTC

This package is auto-updated.

Last update: 2025-12-25 12:26:40 UTC


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.php file. 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.