Download the PHP package felipeva/api-colombia-php without Composer
On this page you can find all versions of the php package felipeva/api-colombia-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package api-colombia-php
Api Colombia PHP is a PHP API client that lets you easily interact with the Api Colombia.
Table of Contents
- Getting started
- Installation
- Usage
- Country Resource
- Region Resource
- Department Resource
- City Resource
- President Resource
- Tourist Attraction Resource
- Category Natural Area Resource
- Natural Area Resource
- Map Resource
Getting started
Requires PHP 8.2+
Installation
First, install the package via the Composer package manager:
Then, you're ready to start using the package:
Usage
Country Resource
get
Retrieves general information about Colombia.
Region Resource
all
Retrieves all regions in Colombia.
get
Retrieves a region by its id.
departments
Retrieves all departments in a region.
Department Resource
all
Retrieves all departments in Colombia.
get
Retrieves a department by its id.
cities
Retrieves all cities in a department.
naturalAreas
Retrieves all natural areas in a department.
touristAttractions
Retrieves all tourist attractions in a department.
getByName
Retrieves a department by its name.
search
Searches for departments by the following fields: Name, Description, PhonePrefix.
paged
Retrieves a paged list of departments.
City Resource
all
Retrieves all cities in Colombia.
get
Retrieves a city by its id.
getByName
Retrieves a city by its name.
search
Searches for cities by the following fields: Name, Description, PostalCode.
paged
Retrieves a paged list of cities.
President Resource
all
Retrieves all presidents in Colombia.
get
Retrieves a president by its id.
getByName
Retrieves a president by its name.
getByYear
Retrieves a president by its year.
To be implemented..
search
Searches for presidents by the following fields: Name, Description, PoliticalParty,LastName
paged
Retrieves a paged list of presidents.
Tourist Attraction Resource
all
Retrieves all touristic attractions in Colombia.
get
Retrieves a touristic attraction by its id.
getByName
Retrieves a touristic attraction by its name.
search
Searches for touristic attractions by the following fields: Name, Description,LastName,Latitude, Longitude
paged
Retrieves a paged list of touristic attractions.
Category Natural Area Resource
all
Retrieves all categories of natural areas in Colombia.
get
Retrieves a category of natural areas by its id.
naturalAreas
Retrieves all natural areas of a category by its id.
Natural Area Resource
all
Retrieves all natural areas in Colombia.
get
Retrieves a natural area by its id.
getByName
Retrieves a natural area by its name.
search
Searches for natural areas by the following fields: Name, Description,LastName,Latitude, Longitude
paged
Retrieves a paged list of natural areas.
Map Resource
all
Retrieves all maps in Colombia.
get
Retrieves a map by its id.