Usage overview
Use composer require
to add PHP/SAP to your project. Depending on the
PHP module you need to require a certain PHP/SAP composer
package.
Module Author | Module | supported PHP versions | composer require |
---|---|---|---|
Eduard Koucky | saprfc |
PHP 4.x - 5.5.x | php-sap/saprfc-koucky |
Piers Harding | sapnwrfc |
PHP 5.x | php-sap/saprfc-harding |
Gregor Kralik | sapnwrfc |
PHP 7.x - 8.x | php-sap/saprfc-kralik |
The namespace of the library is \phpsap\saprfc
, no matter which library you use.
In order to call a SAP remote function, you need to configure the connection parameters and then configure the SAP remote function call.
Continue reading on how to configure the connection parameters.