Download the PHP package avadaneidanut/sapphp without Composer
On this page you can find all versions of the php package avadaneidanut/sapphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avadaneidanut/sapphp
More information about avadaneidanut/sapphp
Files in avadaneidanut/sapphp
Package sapphp
Short Description SAP Remote Function Modules Calls made easy using sapnwrfc.
License MIT
Informations about the package sapphp
SapPhp package
SAP Remote Function Modules Calls made easy using sapnwrfc and PHP.
Legal notice
SAP and other SAP products and services mentioned herein are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries.
Summary
Welcome to SapPhp package. This packages is not a connector, it uses php-sapnwrfc extension to handle client - server communication. This package is intended to provide a clean object oriented interface to handle extensive data extraction using RFC calls. My development plan is to extend this class with PHP Interfaces to SAP FMs (check RfcReadTable interface)
This is an early version and I expect you to raise issues and bugs and maybe give me some suggestions.
Install
Make sure you have the php-sapnwrfc extension installed.
SAP Systems details
The package uses two methods for retrievieng SAP Systems details (ashost, sysnr, description and name) by parsing files using the \SapPhp\Repository class.
-
Parsing saplogon.ini file from:
C:/Users/{currentUser}/AppData/Roaming/SAP/Common/
. - Parsing sapphp.xml from package root folder.
If the first method fails or returns no result the second method will be performed.
Connecting to SAP
Perform Function Module call
Let's get details about an user:
How about getting details about an user using RFC_READ_TABLE
FM? Let's go:
Very nice, we can query a table using a SQL statement. The result from this FM is dirty, fix it with explodes and array_merge, right?
But wait, how about using a FunctionModule interface that has a query builder and parses the result?
And the result:
Take a look at QueryBuilder methods.
QueryBuilder usage.
The previous code will generate the folowing SQL query:
To-do
-
Aggregate multiple table results in one Collection and share the same query over multiple tables.
- Add mode FunctionModule interfaces as RfcReadTable - Please send suggestions!
Support
I will help you ASAP if you find any issues in using this package.
All versions of sapphp with dependencies
ext-sapnwrfc Version *
illuminate/support Version 5.2.*
psy/psysh Version ^0.7.2
sabre/xml Version ^1.4