snide/php-versioneye-client

PHP Version EYE Client

dev-master 2014-05-12 20:59 UTC

This package is not auto-updated.

Last update: 2024-12-17 06:18:11 UTC


README

A PHP Client for Version Eye API

Build Status Scrutinizer Quality Score Code Coverage

Installation

Installation by Composer

If you use composer, add versioneye-client library as a dependency to the composer.json of your application

    "require": {
        ...
        "snide/php-versioneye-client": "dev-master"
        ...
    },

Usage

Projects

<?php

    // Fetch projects

    $client->fetchProjects();

    // Project detail

    $client->fetchProject(new \Snide\VersionEye\Model\Project("composer_pdenis_travinizer_1");

    // Create a project

    $client->createProject('../composer.json');

    // Update a project

    $client->updateProject(new \Snide\VersionEye\Model\Project('composer_snide_php_versioneye_client_1'), '../composer.json');

Users

<?php

    // Fetch me

    $client->fetchMe();

    // Project User by username

    $client->fetchUser(new \Snide\VersionEye\Model\User('pdenis'));

Ping Service

<?php

    // Ping service

    $client->pingService();