Giter Site home page Giter Site logo

pokephp's Introduction

PokePHP

A PHP Wrapper for the Pokemon API

Build Status StyleCI License Total Downloads Latest Stable Version

Getting Started

To get started you must first install the package from composer.

composer require danrovito/pokephp

After composer installs the required package you can call the class by setting the following:

$api = new PokePHP\PokeApi;

This will give you the instance of the class to call the API functions. Below you will see examples for each endpoint. I utilize the $api variable we created above to call each function.

Usage

You can search the data in the $api instance by calling the search method and passing a filter with an optional value, just as you can still limit the results with the limit method. To retrieve the data you must call the request method, which will return a json.

$response = $api->search(Filter::POKEMON_COLOR, 'red')->limit(5)->request();

License

pokephp is open-sourced software licensed under the MIT license

Bug Reporting and Feature Requests

Please add as much detail as possible regarding the submission of issues and feature requests

Disclaimer

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.

pokephp's People

Contributors

danrovito avatar assodepicche avatar andreaselia avatar scrutinizer-auto-fixer avatar stylecibot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.