skyhwk/repository

A simple repository package for Laravel and Lumen
81
Install
composer require skyhwk/repository
Latest Version:1.0.1
PHP:>=7.4
License:MIT
Last Updated:Jan 21, 2025
Links: GitHub  ·  Packagist
Maintainer: Skyhwk

Skyhwk Repository

A simple repository package for Laravel and Lumen to store and retrieve text files.

1. Installation

Run the following command to install the package:

composer require skyhwk/repository

2. Setup in Laravel or Lumen

For Laravel

Add the service provider to config/app.php:

Providers:

Skyhwk\Repository\RepositoryServiceProvider::class,

Aliases:

'Repository' => Skyhwk\Repository.RepositoryFacade::class,

Run the following command to refresh the autoloader:

composer dump-autoload

For Lumen

Register the service provider by adding the following line in bootstrap/app.php:

$app->register(Skyhwk\Repository\RepositoryServiceProvider::class);

Add the alias:

class_alias(Skyhwk\Repository\RepositoryFacade::class, 'Repository');

Run the following command to refresh the autoloader:

composer dump-autoload

Now, you're ready to start using Skyhwk\Repository in your project!