idfx/laravel-example-package

This is an example package for Laravel

0.2.1 2025-03-09 11:29 UTC

This package is auto-updated.

Last update: 2025-04-09 13:38:53 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is an example package for Laravel - Spatie package training.

Installation

You can install the package via composer:

composer require idfx/laravel-example-package

You can publish and run the migrations with:

php artisan vendor:publish --tag="example-package-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="example-package-config"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Command Output
    |--------------------------------------------------------------------------
    |
    | This value will be shown when the example command is executed
    |
    */

    'command_output' => 'Output configured in config file',

];

Optionally, you can publish the views using

php artisan vendor:publish --tag="example-package-views"

Usage

$example = new Idfx\Example();
echo $example->echoPhrase('Hello, Idfx!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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