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.
Here is how to set up the API service:
- Install the library
composer require https://github.com/MissionalDigerati/yop_api_service:master
- 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));
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
- Coding Standard: PHP-FIG PSR12
- Directory Structure: Outline in This Article
- Test Driven Development using PHPUnit.
This code is released under the GNU General Public License.