2amigos/yii2-packagist-component

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii 2 Packagist API extension component.

Installs: 5 702

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 20

Forks: 3

Open Issues: 0

Type:yii2-extension

0.1.1 2014-02-24 12:42 UTC

This package is auto-updated.

Last update: 2023-08-16 02:33:16 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 "2amigos/yii2-packagist-component" "*"

or add

"2amigos/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);  

2amigOS!

Web development has never been so fun! www.2amigos.us