Download the PHP package francisco-cardoso/artsoft-connector without Composer
On this page you can find all versions of the php package francisco-cardoso/artsoft-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download francisco-cardoso/artsoft-connector
More information about francisco-cardoso/artsoft-connector
Files in francisco-cardoso/artsoft-connector
Package artsoft-connector
Short Description Framework-agnostic PHP package for connecting to the ARTSOFT ERP system
License MIT
Informations about the package artsoft-connector
francisco-cardoso/artsoft-connector
Framework-agnostic PHP package for connecting to ARTSOFT.
Requirements
- PHP 8.2+
- ext-curl
- ext-simplexml
Install
For local workspace development (for example from ARTSOFTCustomer), use a path repository:
Config
The package ships with a reusable PHP config file at config/artsoft.php.
If you want to copy that file into your own application, use the framework-agnostic publisher helper:
You can also load the bundled file directly with Artsoft::fromConfigFile() or require your own copied config file and pass the resulting array to Artsoft::create().
Usage
Laravel
The package is framework-agnostic, but ships with optional Laravel support.
The service provider is auto-discovered via Composer. If you have auto-discovery disabled, register it manually in bootstrap/providers.php:
To publish the config file to config/artsoft.php, run:
To overwrite an already-published config file:
Alternatively, use the standard Laravel vendor publish tag:
Once published, the config keys are available via config('artsoft.*') and can also be overridden with environment variables (see config/artsoft.php for the full list).
Main API
FranciscoCardoso\ArtsoftConnector\Artsoft::create()FranciscoCardoso\ArtsoftConnector\Contracts\ArtsoftServiceInterfaceFranciscoCardoso\ArtsoftConnector\Services\ArtsoftServiceFranciscoCardoso\ArtsoftConnector\DTO\Output\RequestResultDTO
Tooling
Documentation
- Full usage and expected example outputs:
docs/usage-and-examples.md - Runnable example scripts:
examples/basic.php,examples/advanced.php,examples/custom_connector.php