PHPackages                             protendai/sap-business-one - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. protendai/sap-business-one

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

protendai/sap-business-one
==========================

Sap Business One for laravel applications

v1.0.0-alpha(3y ago)6202MITPHP

Since May 28Pushed 3y ago3 watchersCompare

[ Source](https://github.com/protendai/sap-business-one)[ Packagist](https://packagist.org/packages/protendai/sap-business-one)[ RSS](/packages/protendai-sap-business-one/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

SAP Business One Service Layer Wrapper for Laravel
--------------------------------------------------

[](#sap-business-one-service-layer-wrapper-for-laravel)

### Installation

[](#installation)

```
composer require protendai/sap-business-one

```

### Configuration

[](#configuration)

Add the following line to your Config/app.php Providers:

```
    Protendai\SapBusinessOne\SapBusinessOneServiceProvider::class
```

Add the following line to your Config/app.php Aliases:

```
    'SAPClient' => Protendai\SapBusinessOne\SAPClient::class,
```

You can publish the config using this command:

```
    php artisan vendor:publish --provider="Protendai\SapBusinessOne\SapBusinessOneServiceProvider"
```

The defaults configuration settings are set in `config/sap.php` as shown below and you can modify the values.

```
'sap' => [
        "https"         => false,
        "host"          => "IP/HOST Address eg 192.168.1.1",
        "port"          => 50000,
        "sslOptions"    => ["cafile" => "path/to/certificate.crt","verify_peer" => true,"verify_peer_name" => true,],
        "version"       => 1
    ],
```

You update config using this command:

```
    php artisan config:cache
```

Using
-----

[](#using)

Use SAPClient in your controller.

```
    use Protendai\SapBusinessOne\SAPClient;
```

Create a new Service Layer session.

```
    $sap = SAPClient::createSession('SAP UserName', 'SAP Password', 'Company DB');
```

Grab the SAP Business One session.

```
    $session = $sap->getSession();
```

Example of pulling orders using session saved above:

```
    $sap = new SAPClient(config('sap.sap') ,$session);
    $orders = $sap->getService('Orders');
    $result = $orders->queryBuilder()
    ->select('DocEntry,DocNum')
    ->orderBy('DocNum', 'asc')
    ->limit(5)
    ->findAll();
```

### License

[](#license)

This SapBusinessOne Wrapper for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1445d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/264c5e8feddc39e8a5e4d400bf9389a9bf24b7667e2dc63835d72185daf19b1f?d=identicon)[Protendai](/maintainers/Protendai)

---

Top Contributors

[![protendai](https://avatars.githubusercontent.com/u/55027177?v=4)](https://github.com/protendai "protendai (12 commits)")

---

Tags

laravelsapsap-business-one

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/protendai-sap-business-one/health.svg)

```
[![Health](https://phpackages.com/badges/protendai-sap-business-one/health.svg)](https://phpackages.com/packages/protendai-sap-business-one)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
