File tree 2 files changed +26
-2
lines changed
2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,31 @@ The [common classes and exceptions](common) add logic that is not specific to
19
19
The module specific implementations contain code that is specific to [ the
20
20
underlying PHP-module] ( php-modules ) .
21
21
22
- ## Usage documentation
22
+ ## TL;DR
23
+
24
+ Especially short explanation for people in a hurry.
25
+
26
+ Use ` composer require ` to add PHP/SAP to your project. Depending on the
27
+ [ PHP module] ( php-modules ) you need to require a certain PHP/SAP composer
28
+ package.
29
+
30
+ ``` php
31
+ <?php
32
+ use phpsap\saprfc\SapRfcConfigA;
33
+ use phpsap\saprfc\SapRfcConnection;
34
+
35
+ $result = (new SapRfcConnection(new SapRfcConfigA([
36
+ 'ashost' => 'sap.example.com',
37
+ 'sysnr' => '001',
38
+ 'client' => '002',
39
+ 'user' => 'username',
40
+ 'passwd' => 'password'
41
+ ])))
42
+ ->prepareFunction('MY_COOL_SAP_REMOTE_FUNCTION')
43
+ ->invoke(['INPUT_PARAM' => 'value']);
44
+ ```
45
+
46
+ ## Documentation
23
47
24
48
* [ Usage overview] ( usage )
25
49
- [ Configure a connection] ( saprfc-config )
Original file line number Diff line number Diff line change 1
1
## Usage overview
2
2
3
3
Use ` composer require ` to add PHP/SAP to your project. Depending on the
4
- [ PHP module] ( php-modules ) you need to require a different PHP/SAP composer
4
+ [ PHP module] ( php-modules ) you need to require a certain PHP/SAP composer
5
5
package.
6
6
7
7
The namespace of the library is ` \phpsap\saprfc ` .
You can’t perform that action at this time.
0 commit comments