Bbball

A simple and powerful PHP dribbble client

bbball

A simple and powerful PHP Client that covers every endpoint of the dribbble api

Installation

Open terminal and paste the following:

cd the-directory-to-put-bbball-in

git clone https://github.com/ekdevdes/bbball.git

Setup

<?php

 include_once 'bbball.php';

 $dribbble = new BBBall;

Usage

 <?php
 // fetch page 2
 $dribbble->page = 2;

 // …and lets get 20 shots per page
 $dribbble->per_page = 20;

 // get shots 
 $shots = $dribbble->get_shots();

 // get a shot
 $shot = $dribbble->get_shot(43424);

 // get a player's info
 $player_info = $dribbble->get_player_info('ethankr');

 // get only a shot's rebounds
 $rebounds = $dribbble->get_shot_rebounds(43424);

 // get only a shot's comments
 $comments = $dribbble->get_shot_comments(43424);

Documentation

After you've included the bbball.php file and create a new instance of it here are the methods you can use:

Bug Reporter & Feature Requests

Please report any bugs here on Github.

http://github.com/ekdevdes/bbball/issues

Thank you.

Contributing

If you would like to contribute to bbball please do the following:

Thank you :)

License

bbball IS DOUBLE LICENSED UNDER THE MIT LICENSE AND GPL LICENSE

MIT LICENSE

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

GPL LICENSE

A simple and powerful PHP Dribbble client Copyright (C) 2011 Ethan Kramer

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

bbball