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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package salesprosdk

SalesPro PHP SDK

PHP Version CI

Enterprise-grade PHP SDK for the SalesPro / SectionERP API with first-class support for CodeIgniter 3 and CodeIgniter 4.


Features V 1.0.0


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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package itechsection/salesprosdk contains the following files

Loading the files please wait ...