https://github.com/defactosoftware/capp-sdk-php
A SDK to quickly build webapps on the CAPP platform in PHP.
https://github.com/defactosoftware/capp-sdk-php
Last synced: 3 months ago
JSON representation
A SDK to quickly build webapps on the CAPP platform in PHP.
- Host: GitHub
- URL: https://github.com/defactosoftware/capp-sdk-php
- Owner: DefactoSoftware
- Created: 2013-10-02T13:22:05.000Z (over 12 years ago)
- Default Branch: develop
- Last Pushed: 2015-06-15T08:41:35.000Z (over 10 years ago)
- Last Synced: 2025-01-01T11:42:26.266Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 224 KB
- Stars: 0
- Watchers: 26
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CAPP SDK for PHP
This is a PHP SDK to quickly build PHP webapps on the CAPP platform. It currently contains two classes. Both of them have a test page.
## API - capp_api_calls.php
Wrapper class for the CAPP API. Ask Defacto to whitelist your IP adress for API usage and to generate a passphrase. Instantiate class with API base URL, passphrase and username for the user to impersonate. See capp_api_test_page.php for usage example and test page.
## SSO - capp_sso.php
Class to offer Single Sign-On with CAPP. You need composer to resolve dependencies:
```bash
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
```
Instantiate class with CAPP url and OAuth secret. Call the login method with a users username to redirect the user to CAPP. See capp_sso_test_page.php for usage example and test page. CAPP administrators can generate an OAuth secret in CAPP on the /EditSystemAppSettings.aspx page.
## Maintainence
Adhere to [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/) coding style.