vundi/php-evangelists

A package that tells you what type of evangelist you are depending on the number of public repos you have on github

dev-master 2016-01-12 17:24 UTC

This package is not auto-updated.

Last update: 2024-11-05 19:33:01 UTC


README

Scrutinizer Code Quality Build Status Coverage Status

PHP evangelize is a PHP package that tells a user what type of evangelist He/She is based on the number of public repositories they own on Github.

Installation

Inside your project folder, run this commands

$ composer require vundi/phpevangelize
$ composer install

Sample Usage

 <?php

require 'vendor/autoload.php';

use Vundi\Checkpoint1\GithubApi;
use Vundi\Checkpoint1\EvangelistStatus;
use Vundi\Checkpoint1\Exceptions\InvalidUsername;
use Vundi\Checkpoint1\Exceptions\NoUsernamePassed;


try {
    $user = new EvangelistStatus("andela-cvundi");
    echo $user->getStatus();
} catch (InvalidUsername $e) {
    echo $e->getMessage();
} catch (NoUsernamePassed $e) {
    echo $e->getMessage();
}

Credits

License

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