deschutesdesigngroupllc / perscom-php-sdk
The PERSCOM PHP SDK is a powerful tool that enables seamless integration with the PERSCOM platform, allowing you to interact with PERSCOM's personnel data programmatically.
Installs: 59
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 2
Type:project
Requires
- php: ^8.1
- illuminate/support: ^10.43
- saloonphp/rate-limit-plugin: ^1.0
- saloonphp/saloon: ^2.0
Requires (Dev)
- crescat-io/saloon-sdk-generator: ^1.0
- laravel/pint: ^1.13
- mockery/mockery: ^1.6
- pestphp/pest: ^2.19
- pestphp/pest-plugin-type-coverage: ^2.4
- phpstan/phpstan: ^1.10
This package is auto-updated.
Last update: 2024-04-22 06:40:03 UTC
README
The Official PERSCOM PHP SDK
A PHP package that helps kickstart your next PERSCOM integration.
Introduction
The PERSCOM PHP SDK is a powerful tool that enables seamless integration with the PERSCOM platform, allowing you to interact with PERSCOM's personnel data programmatically.
<?php $perscom = new PerscomConnection('api-token', 'perscom-id'); // Get a list of a specific resource $response = $perscom->users()->all(); // Creating a resource $response = $perscom->users()->create(data: [ 'name' => 'My New User' ]) // Updating a resource $response = $perscom->users()->update(id: 1, data: [ 'name' => 'My New Name' ]) // Deleting a resource $response = $perscom->users()->delete(id: 1) // Searching for a resource $response = $perscom->users()->search( value: 'foobar', sort: new SortObject('first_name', 'asc'), filter: new FilterObject('created_at', '<', '2024-01-01') ) // Other examples $response = $perscom->users()->profile_photo(id: 1)->create(filePath: 'image.jpg') $response = $perscom->users()->assignment_records(id: 1)->delete(); // Parse the response into a usable array $data = $response->json();
Getting Started
You can install the package using Composer:
composer require deschutesdesigngroupllc/perscom-php-sdk
Documentation
Visit our documentation here to get started.
Contributing
Please see here for more details about contributing.