skeeks/yii2-packagist-component

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Yii 2 Packagist API extension component.

0.1.2 2016-02-25 07:27 UTC

This package is auto-updated.

Last update: 2021-08-29 01:29:24 UTC


README

Component extension wrapper for Packagist API

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "skeeks/yii2-packagist-component" "*"

or add

"skeeks/yii2-packagist-component" : "*"

to the require section of your application's composer.json file.

Usage

use dosamigos\packagist\Packagist;

$api = new Packagist;

// get a package information  
$response = $api->package('yiisoft/yii2`)->getResponse();  
// dump response  
var_dump($response->body);

// get a filtered list  
$response = $api->all(['vendor' => '2amigos'])->getResponse();
if($response->isSuccessFul) {
    var_dump($response->body);
} else {
    var_dump($response->error);
}

// search packages
$response = $api->search('yii2')->getResponse();  
var_dump($response->body);  

skeeks! SkeekS CMS (Yii2) — fast, simple, effective! skeeks.com | cms.skeeks.com | marketplace.cms.skeeks.com