Skip to content

MissionalDigerati/yop_api_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Year of Prayer: API Service

This package provides a common PHP service for engaging your instance of the Year of Prayer API. It handles the communication between your application and the API.

Usage

Here is how to set up the API service:

  1. Install the library
composer require https://github.com/MissionalDigerati/yop_api_service:master
  1. Add your code
<?php
use YearOfPrayer\ApiService\ApiService;
use YearOfPrayer\ApiService\ConsumerService;
use YearOfPrayer\ApiService\HttpService;
use YearOfPrayer\ApiService\PrayerService;

$httpService = new HttpService('YOUR API URL');
$apiService = new ApiService(new ConsumerService($httpService), new PrayerService($httpService));

Development

This repository is following the branching technique described in this blog post, and the semantic version set out on the semantic versioning website. Here are some of our language specific standards:

PHP

License

This code is released under the GNU General Public License.

About

This package provides a common PHP service for engaging your instance of the Year of Prayer API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages