https://github.com/embloy/embloy-php
Embloy's PHP SDK for interacting with your Embloy integration.
https://github.com/embloy/embloy-php
composer-package sdk sdk-php
Last synced: 5 months ago
JSON representation
Embloy's PHP SDK for interacting with your Embloy integration.
- Host: GitHub
- URL: https://github.com/embloy/embloy-php
- Owner: Embloy
- License: agpl-3.0
- Created: 2024-02-08T00:00:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T22:26:34.000Z (over 1 year ago)
- Last Synced: 2025-05-21T12:13:10.319Z (about 1 year ago)
- Topics: composer-package, sdk, sdk-php
- Language: PHP
- Homepage: https://packagist.org/packages/embloy/embloy-php
- Size: 49.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Embloy PHP](https://packagist.org/packages/embloy/embloy-php) · [](https://github.com/Embloy/Embloy-PHP/blob/main/LICENSE) [](https://packagist.org/packages/embloy/embloy-php) [](https://github.com/Embloy/Embloy-PHP/issues) [](https://github.com/Embloy/Embloy-PHP/pulls)
Embloy's PHP SDK for interacting with your Embloy integration.
## Installation
You can install the Embloy PHP SDK via Composer. Run the following command in your terminal:
```bash
composer require embloy/embloy-php
```
## Usage
To use the Embloy PHP SDK, you'll need to initialize an EmbloyClient object with your client token and session information. Here's an example of how to use it:
```php
use Embloy\EmbloyClient;
use Embloy\EmbloySession;
// Create an instance of EmbloySession
$session = new EmbloySession('mode', 'job_slug', ['success_url' => 'optional_success_url', 'cancel_url' => 'optional_cancel_url']);
// Create an instance of EmbloyClient
$client = new EmbloyClient('your-client-token', $session);
try {
// Make a request to generate the URL
$url = $client->makeRequest();
echo "Application URL: $url";
} catch (\Exception $e) {
echo "Error: " . $e->getMessage();
}
```
## Run Tests
To run the tests for the Embloy PHP SDK, you'll need PHPUnit installed. If you haven't already installed PHPUnit, you can do so via Composer. Run the following command:
```bash
composer require --dev phpunit/phpunit
```
Once PHPUnit is installed, you can run the tests with the following command:
```bash
vendor/bin/phpunit tests
```
## Publish Package
To publish the Embloy PHP SDK package, ensure that your package meets the Composer's standards by validating it with the following command:
```bash
composer validate
```
---
© Carlo Bortolan, Jan Hummel
> Carlo Bortolan ·
> GitHub [@carlobortolan](https://github.com/carlobortolan) ·
> contact via [bortolanoffice@embloy.com](mailto:bortolanoffice@embloy.com)
>
> Jan Hummel ·
> GitHub [@github4touchdouble](https://github.com/github4touchdouble) ·
> contact via [hummeloffice@embloy.com](mailto:hummeloffice@embloy.com)