Search by

Hello, World

Package info

github.com/FabrinoDash/hello

pkg:composer/fabrinotech/hello

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-08-11 13:54 UTC

This package is auto-updated.

Last update: 2026-09-11 14:52:45 UTC


README

A simple, lightweight PHP Composer package that generates customizable greetings.

Requirements

  • PHP 8.1 or higher
  • Composer

Installation

You can install the package via Composer. Run the following command in your terminal:

composer require fabrinotech/hello

Usage

Once installed, ensure you have required the Composer autoloader in your project. You can then import the Hello class and use it to generate greetings.

Basic Example

<?php

require 'vendor/autoload.php';

use Fabrinotech\Hello\Hello;

$greeter = new Hello();

// Use the default greeting
echo $greeter->sayHello(); 
// Outputs: Hello, World from Fabrinotech!

// Pass a custom name
echo $greeter->sayHello('Developer'); 
// Outputs: Hello, Developer from Fabrinotech!

Usage in Laravel (or other frameworks)

If you are using a modern framework like Laravel, you do not need to manually require the vendor/autoload.php file. Simply import the namespace in your controller or route:

<?php

namespace App\Http\Controllers;

use Fabrinotech\Hello\Hello;

class GreetingController extends Controller
{
    public function index()
    {
        $greeter = new Hello();
        return $greeter->sayHello('Laravel User');
    }
}

Testing

This package uses PHPUnit for testing. To run the test suite, execute the following command:

./vendor/bin/phpunit tests

Authors

License

The MIT License (MIT). Please see the License File for more information.