Download the PHP package asikam/softone without Composer
On this page you can find all versions of the php package asikam/softone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asikam/softone
More information about asikam/softone
Files in asikam/softone
Package softone
Short Description A simple PHP Laravel package to interact with Softone ERP Web Services
License MIT
Informations about the package softone
Softone Web Services PHP Laravel Package
A Laravel package that makes it easy to consume Softone ERP Web Services REST API.
Disclaimer: This is not an official package
Table of Contents
- Introduction
- Requirements
- Installation
- Configuration
- Usage
- Using SoftoneBrowser
- Building Requests Step by Step
- Available Methods
- SoftoneBrowser Methods
- Softone Core Methods
- Examples
- Contributing
- License
Introduction
This package provides a simple and elegant way to interact with the Softone Web Services REST API in your Laravel applications. It handles authentication, request building, and response parsing, allowing you to focus on your application logic.
Official Softone Web Services documentation: https://www.softone.gr/ws/
Requirements
- PHP 7.4 or higher
- Laravel 8.0 or higher
Installation
You can install the package via composer:
After installing, publish the configuration file:
Configuration
After publishing the configuration file, you can find it at config/softone.php
. You'll need to set the following environment variables in your .env
file:
Usage
Using SoftoneBrowser
The SoftoneBrowser
class provides a simplified interface for common operations:
Building The Request
For more control, you can use the core Softone
class to build your requests:
Available Methods
SoftoneBrowser Methods
search($object, $filters, $list, $start, $limit)
: Combines getBrowserInfo and getBrowserData in one callinfo($object, $filters, $list)
: Gets browser information for a specific objectgetBrowserInfo($object, $filters, $list)
: Gets browser information for a specific objectgetBrowserData($start, $limit)
: Gets browser data with paginationgetData($object, $key)
: Gets data for a specific object with a key
Softone Core Methods
The core Softone
class provides numerous methods for building and sending requests:
setService($service)
: Sets the service to call (e.g., getBrowserInfo, getBrowserData)setUsername($username)
: Sets the username for authenticationsetPass($password)
: Sets the password for authenticationsetAppId($appId)
: Sets the application IDsetCompany($company)
: Sets the company IDsetBranch($branch)
: Sets the branch IDsetModule($module)
: Sets the module IDsetRefid($refid)
: Sets the reference IDsetClientID($clientID)
: Sets the client IDsetObject($object)
: Sets the object to query (e.g., CUSTOMER, ITEM)setKey($key)
: Sets the key for getData requestssetFilters($filters)
: Sets the filters for browser requestssetList($list)
: Sets the list for browser requestslocate($locate)
: Sets the locate info softone parameterstart($start)
: Sets the start parameter for paginationlimit($limit)
: Sets the limit parameter for paginationsetReqId($reqID)
: Sets the request ID for getBrowserData requestssetRequestData($data)
: Sets the request datasend()
: Sends the request to the Softone Web Services API
Examples
Searching for Customers
Getting a Specific Customer by ID
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
For more information on how to use the Softone Web Services, please refer to the official documentation.
All versions of softone with dependencies
ext-iconv Version *