Download the PHP package akira/laravel-packagist without Composer
On this page you can find all versions of the php package akira/laravel-packagist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-packagist
Laravel Packagist SDK
A modular SDK and Laravel integration for the Packagist.org API with typed DTOs, configurable caching strategies, and static analysis level max.
Requires PHP 8.4+ and Laravel 12+
Features
- Type-Safe DTOs — Strict typing with readonly properties and immutability
- Configurable Cache Strategies — Multiple caching strategies (remember, revalidate, forever, none)
- Action Pattern — Clean separation of concerns with dedicated action classes
- Full Static Analysis — PHPStan level max with Larastan
- Pest Testing — Comprehensive test coverage with PestPHP
- Laravel 12 Ready — Built for modern Laravel applications
Installation
Install via Composer:
Publish the configuration file:
Configuration
Edit config/packagist.php to customize your setup:
Usage
Get Package Information
Search Packages
Get Statistics
Get Package Maintainers
Cache Strategies
RevalidateCache (Default)
Uses Laravel's cache remember() method with optional TTL revalidation.
RememberCache
Standard cache remember with configurable TTL (default: 3600 seconds).
ForeverCache
Caches indefinitely until manually cleared.
NoneCache
Disables caching entirely.
Custom Cache Implementation
Implement the CacheContract to create your own caching strategy:
Register in config:
Custom HTTP Client
Implement the ClientContract for custom HTTP handling:
Use it:
Testing
Run the test suite:
Run tests with coverage:
Type coverage check:
Code Quality
Format code with Pint:
Refactor with Rector:
Static analysis with PHPStan:
Check refactoring rules:
API Reference
Packagist Facade
package(string $name): PackageDTO— Get package informationsearch(string $query, array $filters = []): array— Search packagesstats(array $filters = []): array— Get statisticsmaintainers(string $package): array— Get package maintainerswithClient(ClientContract $client): PackagistManager— Use custom HTTP clientwithCache(CacheContract $cache): PackagistManager— Use custom cache strategy
DTOs
PackageDTO
name: stringdescription: stringrepository: ?stringversions: array<string, VersionDTO>maintainers: array<MaintainerDTO>homepage: ?stringlicense: ?stringdownloads: array— Download statistics withtotal,monthly,dailyfavers: int
VersionDTO
version: stringname: stringdescription: stringrequire: stringkeywords: arrayhomepage: ?stringlicense: ?stringauthors: array
MaintainerDTO
name: stringemail: stringhomepage: ?string
License
The MIT License (MIT). See LICENSE file for details.
Support
For issues, questions, or contributions, visit the GitHub repository.
All versions of laravel-packagist with dependencies
illuminate/support Version ^12.0
illuminate/console Version ^12.0
guzzlehttp/guzzle Version ^7.9
laravel/prompts Version ^0.3.0
spatie/laravel-package-tools Version ^1.16