Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/everlutionsk/citadel-php
https://github.com/everlutionsk/citadel-php
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/everlutionsk/citadel-php
- Owner: everlutionsk
- Created: 2024-03-13T18:34:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T09:38:46.000Z (7 months ago)
- Last Synced: 2024-11-06T00:29:50.506Z (3 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CitadelClient
CitadelClient is a PHP library for interacting with the Citadel API.
## Installation
You can install this library via Composer:
```bash
composer require everlutionsk/citadel-client
```## Usage
```php
sessionResolve($request);// Handle the response
if ($response->session) {
echo "Session resolved successfully:\n";
echo "Session ID: " . $response->session->id . "\n";
// Other session details...
} else {
echo "No session resolved.\n";
echo "Recommended action: " . $response->recommended->action . "\n";
// Other recommendations...
}
} catch (\Exception $e) {
// Handle errors
echo "Error: " . $e->getMessage() . "\n";
}
```Replace 'https://api.citadel.example', 'your-pre-shared-key', 'your-cookie-header', 'your-client-id', and 'your-client-secret' with your actual Citadel API endpoint, pre-shared key, cookie header, client ID, and client secret respectively.