Download the PHP package iceithq/oneid-php-client without Composer
On this page you can find all versions of the php package iceithq/oneid-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package oneid-php-client
OneID PHP Client
PHP client library for integrating with the OneID API at https://oneid.systems/api/v1.
Features
- Simple and intuitive API interface
- PSR-4 autoloading support
- Comprehensive error handling with custom exceptions
- Support for all HTTP methods (GET, POST, PUT, DELETE)
- Built-in authentication methods
- Configurable timeout and debug mode
- Easy integration with any PHP application
Requirements
- PHP >= 7.4
- cURL extension
- JSON extension
Installation
Via Composer (Recommended)
If you want to use this package in your projects (oneid-delivery, oneid-portal, etc.), add this to your main project's composer.json:
Then run:
Manual Installation
Clone this repository and include the autoloader:
Quick Start
Basic Usage
Authentication
Verify Token
Get User Profile
Refresh Token
Logout
API Methods
HTTP Methods
Authentication Methods
| Method | Description |
|---|---|
authenticate($username, $password) |
Login with credentials |
verifyToken($token) |
Verify token validity |
refreshToken($refreshToken) |
Refresh authentication token |
getProfile($userId = null) |
Get user profile |
logout() |
Logout current user |
setApiKey($apiKey) |
Set API key for authenticated requests |
Configuration Options
Configuration Methods
Error Handling
The client uses custom exceptions for different error scenarios:
Exception Types
| Exception | HTTP Codes | Description |
|---|---|---|
AuthenticationException |
401, 403 | Authentication/authorization failures |
ValidationException |
422 | Validation errors |
OneIDException |
All others | General API errors |
Integration Examples
In oneid-delivery (Riders App)
In oneid-portal (Residents App)
Development
Running Tests
Directory Structure
License
MIT License
Support
For issues and questions, please contact ICEIT HQ development team.
Changelog
Version 1.0.0 (2026-02-14)
- Initial release
- Basic API client functionality
- Authentication support
- Error handling with custom exceptions
- PSR-4 autoloading
All versions of oneid-php-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package iceithq/oneid-php-client contains the following files
Loading the files please wait ...