Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddiejaoude/opg-lpa-api-server
API server for the Lasting Power of Attorney online digital tool
https://github.com/eddiejaoude/opg-lpa-api-server
Last synced: 2 months ago
JSON representation
API server for the Lasting Power of Attorney online digital tool
- Host: GitHub
- URL: https://github.com/eddiejaoude/opg-lpa-api-server
- Owner: eddiejaoude
- License: mit
- Created: 2014-05-11T08:44:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-11T18:50:15.000Z (over 10 years ago)
- Last Synced: 2024-10-02T23:41:12.348Z (3 months ago)
- Language: PHP
- Size: 6.25 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/ministryofjustice/opg-lpa-api-server.svg?branch=master)](https://travis-ci.org/ministryofjustice/opg-lpa-api-server)
---
# OPG LPA API v 1.0.1Moved `LICENSE` to `LICENSE` file.
## Application Server (aka the API)
The Application Server is written in PHP 5.4 using [Zend Framework 2](http://framework.zend.com/).
It exposes a RESTful API with endpoints for retrieving, storing and submitting Applications and Registrations.
Within the larger LPA front office system the Application Server is the point of authority for validation and workflow processing.
## How to setup a development environment
### Requirements:
PHP 5.4+ with PDO support for MySQL, SQLite and MongoDBCreate the following files:
```
config/autoload/local.php
```Templates are available:
```
config/autoload/local.php.jinja
```### Run the following from the application's root directory:
```
php composer.phar install --dev
```Give your webserver appropriate permissions to write into the following directories:
```
data
data/cache
```### To run all tests
```
vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml
```#### Unit tests only
```
vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml module/Opg/tests/Unit/
```#### Integration tests only
```
vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml module/Opg/tests/Integration/
```## TODO
- [x] Removed `vendor` directory *(production dependencies re-added as requested)*
- [x] Moved `LICENSE` to its own file
- [ ] Moved best practices config files (i.e. `phpcs.xml`) to `test` directory
- [ ] Moved `bin` directory from root of project to default location (vendor)
- [x] Add Unit Tests to Travis CI
- [ ] Add Integration/Smoke Tests to Travis CI
- [ ] Coveralls support for CodeCoverage from TravisCI