Laravel Repman provides an expressive, fluent interface to Repman.io's services.
Repman.io is a private Composer repository manager. It allows you to host your own Composer repository and manage packages from it. It also allows you to mirror packages from Packagist.
Requirements
- PHP >= 8.1
- Laravel >= 9.0
Installation
You can install the package via composer:
composer require alphaolomi/laravel-repman
Configuration
php artisan vendor:publish --tag="repman-config"
Service Manager
use AlphaOlomi\Repman\RepmanService;
$repman = new RepmanService('your-token',);
// Collection of organizations
$orgsCollection = $repman->organizations()->list();
$orgArray = $orgsCollection->all();
print_r($orgArray);
Facades
This package also provides a facade for easy access to the service manager.
use AlphaOlomi\Repman\Facades\Repman;
$orgsCollection = Repman::organizations()->list();
$orgArray = $orgsCollection->all();
print_r($orgArray);
Internal & Misc
Package utilize data objects to make it easy to work with the data returned from the API.
Testing
This package uses Pest PHP testing framework
Next: Usage