PHP Package: spatie/packagist-api

Spatie's Packagist API library for PHP provides easy access to Packagist data with simple API calls, ideal for package managers, developers, and repositories.

Current Version: 2.1.0
Last Updated: 2022-08-01
PHP Requirement: ^7.3|^8.0
Dependencies:
guzzle/guzzle
spatie/data
symfony/console
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Spatie's Packagist API library for PHP offers seamless integration with Packagist, enabling effortless retrieval of package details, statistics, and metadata. This library streamlines package management, enhances developer workflows, and boosts repository efficiency with fast, reliable data access and retrieval capabilities.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.1.1

Clock Coming soon

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/packagist-api/2.1.1/loader.php';
require_once 'libs/guzzle/guzzle/7.10.0/loader.php';
require_once 'libs/spatie/data/{lib_version}/loader.php';
require_once 'libs/symfony/console/7.3.4/loader.php';

use Spatie\PackagistApi\Client;
use GuzzleHttp\Client;
use Symfony\Component\Console\Application;

$obj = new Client();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.