https://github.com/bubbaops/macro-collection
Macros for Collections
https://github.com/bubbaops/macro-collection
Last synced: 12 months ago
JSON representation
Macros for Collections
- Host: GitHub
- URL: https://github.com/bubbaops/macro-collection
- Owner: BubbaOps
- License: mit
- Created: 2023-03-19T23:39:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T07:02:57.000Z (over 2 years ago)
- Last Synced: 2025-02-23T21:32:08.683Z (over 1 year ago)
- Language: PHP
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A collection of macros for Collections.
[](https://packagist.org/packages/bubbaops/macro-collection)
[](https://github.com/bubbaops/macro-collection/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/bubbaops/macro-collection/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/bubbaops/macro-collection)
A collection of macros that we regularly use in development, gathered in one convenient spot.
## Installation
You can install the package via composer:
```bash
composer require bubbaops/macro-collection
```
You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="macro-collection-migrations"
php artisan migrate
```
You can publish the config file with:
```bash
php artisan vendor:publish --tag="macro-collection-config"
```
This is the contents of the published config file:
```php
return [
];
```
Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="macro-collection-views"
```
## Usage
```php
$macroCollection = new BubbaOps\MacroCollection();
echo $macroCollection->echoPhrase('Hello, BubbaOps!');
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Bubba Hines](https://github.com/BubbaOps)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.