Skip to content

Commit 54fb9f8

Browse files
committed
remove work-in-progress message and add short usage information
1 parent aec388f commit 54fb9f8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@
77

88
This repository implements the [PHP/SAP][phpsap] interface for [Eduard Kouckys legacy saprfc PHP module][koucky].
99

10+
## Usage
11+
12+
```sh
13+
composer require php-sap/saprfc-harding:^1.0
14+
```
15+
16+
```php
17+
<?php
18+
use phpsap\saprfc\SapRfcConfigA;
19+
use phpsap\saprfc\SapRfcConnection;
20+
21+
$result = (new SapRfcConnection(new SapRfcConfigA([
22+
'ashost' => 'sap.example.com',
23+
'sysnr' => '001',
24+
'client' => '002',
25+
'user' => 'username',
26+
'passwd' => 'password'
27+
])))
28+
->prepareFunction('MY_COOL_SAP_REMOTE_FUNCTION')
29+
->invoke(['INPUT_PARAM' => 'value']);
30+
```
31+
32+
For further documentation, please read the documentation on [PHP/SAP][phpsap]!
33+
1034
[phpsap]: https://php-sap.github.io
1135
[koucky]: http://saprfc.sourceforge.net/ "SAPRFC extension module for PHP"
1236
[license-mit]: https://img.shields.io/badge/license-MIT-blue.svg

0 commit comments

Comments
 (0)