Download the PHP package danrovito/pokephp without Composer
On this page you can find all versions of the php package danrovito/pokephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pokephp
PokePHP
A PHP Wrapper for the Pokemon API
Getting Started
To get started you must first install the package from composer.
After composer installs the required package you can call the class by setting the following:
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.
Pagination
You can add offset() for the next source list
Or you can use the page() function for simplicity.
Or both, but the offset() function will overwrite the result of the page() function
Is same with
Type Response
Basically, the 'request' function just returns a raw response from PokeAPI. If you use var_dump() it will indicate that the type is string.
But now you can choose your preferred response type
Default type / string:
Array type:
Object type:
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.
All versions of pokephp with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *