bubbaops/macro-collection

A collection of macros for Collections.

dev-main 2023-07-03 06:59 UTC

README

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

A collection of macros that we regularly use in development, gathered in one convenient spot.

Installation

You can install the package via composer:

composer require bubbaops/macro-collection

You can publish and run the migrations with:

php artisan vendor:publish --tag="macro-collection-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="macro-collection-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="macro-collection-views"

Usage

$macroCollection = new BubbaOps\MacroCollection();
echo $macroCollection->echoPhrase('Hello, BubbaOps!');

Testing

composer test

Changelog

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

Credits

License

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