packagist-api

The easiest way to work with the packagist API

  • 所有者: spatie/packagist-api
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Fetch package info from Packagist

Latest Version on Packagist
Software License
Build Status
Quality Score
Total Downloads

This package makes it easy to search and fetch package info using the Packagist API.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

All postcards are published on our website.

Installation

You can install the package via composer:

composer require spatie/packagist-api

Usage

You must pass a Guzzle client to the constructor of Spatie\Packagist\Packagist.

$client = new \GuzzleHttp\Client();

$packagist = new \Spatie\Packagist\Packagist($client);

Get all packages by a specific vendor

$packagist->getPackagesByVendor('spatie');

Find a package by it's name

$packagist->findPackageByName('spatie/laravel-backup');

Get all packages by type

$packagist->getPackagesByType('symfony-bundle');

Get all packages by name and type

$packagist->getPackagesByName('monolog', 'symfony-bundle')

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

主要指標

概覽
名稱與所有者spatie/packagist-api
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2016-05-06 07:32:06
推送於2025-03-21 09:22:32
最后一次提交
發布數13
最新版本名稱2.1.1 (發布於 )
第一版名稱0.0.1 (發布於 )
用户参与
星數128
關注者數6
派生數21
提交數189
已啟用問題?
問題數0
打開的問題數0
拉請求數20
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?