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.

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 sapphp

SapPhp package

SAP Remote Function Modules Calls made easy using sapnwrfc and PHP.

Latest Stable Version Total Downloads Latest Unstable Version License

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.

  1. Parsing saplogon.ini file from: C:/Users/{currentUser}/AppData/Roaming/SAP/Common/.

  2. 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

Support

I will help you ASAP if you find any issues in using this package.


All versions of sapphp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
ext-sapnwrfc Version *
illuminate/support Version 5.2.*
psy/psysh Version ^0.7.2
sabre/xml Version ^1.4
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 avadaneidanut/sapphp contains the following files

Loading the files please wait ....