Download the PHP package itechsection/salesprosdk without Composer
On this page you can find all versions of the php package itechsection/salesprosdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download itechsection/salesprosdk
More information about itechsection/salesprosdk
Files in itechsection/salesprosdk
Download itechsection/salesprosdk
More information about itechsection/salesprosdk
Files in itechsection/salesprosdk
Vendor itechsection
Package salesprosdk
Short Description Enterprise-grade PHP SDK for the SalesPro / SectionERP API — with full CodeIgniter 3 & 4 integration
License MIT
Package salesprosdk
Short Description Enterprise-grade PHP SDK for the SalesPro / SectionERP API — with full CodeIgniter 3 & 4 integration
License MIT
Please rate this library. Is it a good library?
Informations about the package salesprosdk
SalesPro PHP SDK
Enterprise-grade PHP SDK for the SalesPro / SectionERP API with first-class support for CodeIgniter 3 and CodeIgniter 4.
Features V 1.0.0
- ✅ Full coverage of every SalesPro API endpoint
- ✅ OAuth2 password-grant token management with auto-refresh
- ✅ Personal access token support
- ✅ Automatic retry with exponential back-off (via Polly-equivalent Guzzle middleware)
- ✅ Rate-limit handling with
Retry-Afterheader awareness - ✅ PSR-16 response caching for read-only endpoints
- ✅ PSR-3 logging support
- ✅ Strongly typed response objects
- ✅ Automatic pagination helper (
getAllPages) - ✅ CodeIgniter 3 Library
- ✅ CodeIgniter 4 Service + Config class
- ✅ Multi-tenant support via
X-Tenant-Idheader - ✅ Full PHPUnit test suite
Requirements
| Requirement | Version |
|---|---|
| PHP | 7.4, 8.0, 8.1, 8.2, 8.3 |
| Guzzle | ^7.0 |
| ext-curl | * |
| ext-json | * |
Installation
Quick Start
Plain PHP
CodeIgniter 3 Integration
1. Publish the library and config
2. Edit application/config/salespro.php
3. Use in your controllers
CodeIgniter 4 Integration
1. Publish config files
2. Edit app/Config/SalesPro.php
3. Use in your controllers
Authentication
Password Grant (default)
Static Token (personal access token)
Managing Personal Access Tokens
All Available Services & Methods
| Service | Property | Key Methods |
|---|---|---|
| Attendance | $client->attendance |
getAttendance($userId), clockIn($data), clockOut($data), listHolidays($filters) |
| Brands | $client->brands |
list(), get($id) |
| Business Locations | $client->businessLocations |
list(), get($id) |
| Business | $client->business |
getDetails(), getProfitLossReport($filters), getNotifications(), getPaymentAccounts(), getPaymentMethods() |
| Cash Registers | $client->cashRegisters |
list(), create($data), get($id) |
| Contacts | $client->contacts |
list($params), create($data), get($id), update($id, $data), addPayment($data) |
| CRM | $client->crm |
listFollowUps(), addFollowUp($data), getFollowUp($id), updateFollowUp($id, $data), listLeads(), saveCallLog($data) |
| Expenses | $client->expenses |
list(), create($data), get($id), update($id, $data), listRefunds(), listCategories() |
| Field Force | $client->fieldForce |
listVisits(), createVisit($data), updateVisitStatus($id, $data) |
| Products | $client->products |
list($params), get($id), listVariations($id), listSellingPriceGroups(), getStockReport($params) |
| Sales | $client->sales |
list(), create($data), get($id), update($id, $data), delete($id), addReturn($data), listReturns(), updateShippingStatus($data) |
| Superadmin | $client->superadmin |
getActiveSubscription(), getPackages() |
| Tables | $client->tables |
list(), get($id) |
| Taxes | $client->taxes |
list(), get($id) |
| Taxonomies | $client->taxonomies |
list(), get($id) |
| Types of Service | $client->typesOfService |
list(), get($id) |
| Units | $client->units |
list(), get($id) |
| Users | $client->users |
getLoggedIn(), register($data), list(), get($id), updatePassword($data), forgotPassword($data) |
Pagination
Every list() method returns an ApiListResponse with a $meta property:
Error Handling
Configuration Reference
| Key | Type | Default | Description |
|---|---|---|---|
base_url |
string | — | SalesPro instance URL (required) |
client_id |
string | — | OAuth2 client ID (required) |
client_secret |
string | — | OAuth2 client secret (required) |
username |
string | — | Login username |
password |
string | — | Login password |
static_access_token |
string|null | null | Personal access token (skips password grant) |
timeout |
int | 30 | HTTP timeout (seconds) |
max_retries |
int | 3 | Retry attempts on transient errors |
retry_delay_ms |
int | 500 | Base retry delay (milliseconds, exponential) |
verify_ssl |
bool | true | SSL certificate verification |
enable_cache |
bool | false | In-memory GET response caching |
cache_ttl |
int | 60 | Cache TTL (seconds) |
enable_logging |
bool | false | Request/response debug logging |
tenant_id |
string|null | null | Sent as X-Tenant-Id header |
default_headers |
array | [] | Extra headers on every request |
Running Tests
How To Use
License
MIT — see LICENSE.
All versions of salesprosdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^7.0
psr/log Version ^1.0 || ^2.0 || ^3.0
psr/simple-cache Version ^1.0 || ^2.0 || ^3.0
ext-curl Version *
ext-json Version *
guzzlehttp/guzzle Version ^7.0
psr/log Version ^1.0 || ^2.0 || ^3.0
psr/simple-cache Version ^1.0 || ^2.0 || ^3.0
The package itechsection/salesprosdk contains the following files
Loading the files please wait ...