PHPackages                             realsoftgt/sap-b1-sl - 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. [API Development](/categories/api)
4. /
5. realsoftgt/sap-b1-sl

ActiveLibrary[API Development](/categories/api)

realsoftgt/sap-b1-sl
====================

SAPBOSL es el puente entre su desarrollo Laravel y SAP Business One Service Layer utilizando Laravel HTTP Client.

v0.2.8(3y ago)2941[1 issues](https://github.com/realsoftgt/sap-b1-sl/issues)MITPHP

Since Mar 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/realsoftgt/sap-b1-sl)[ Packagist](https://packagist.org/packages/realsoftgt/sap-b1-sl)[ RSS](/packages/realsoftgt-sap-b1-sl/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (19)Used By (0)

SAPBOSL Wrapper for Laravel
---------------------------

[](#sapbosl-wrapper-for-laravel)

### Install SAPBOSL

[](#install-sapbosl)

```
composer require realsoftgt/sap-b1-sl

```

### Configurate SAPBOSL

[](#configurate-sapbosl)

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

```
    RealSoft\SAPBOSL\SAPBOSLServiceProvider::class
```

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

```
    'SAPClient' => RealSoft\SAPBOSL\SAPClient::class,
```

You can publish the config using this command:

```
    php artisan vendor:publish --provider="RealSoft\SAPBOSL\SAPBOSLServiceProvider"
```

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

```
    'https'         => env('SAP_SECURE_URL', false),
    'host'          => env('SAP_BASE_URL', '192.168.1.1'),
    'port'          => env('SAP_BASE_PORT', 50000),
    'company_db'    => env('SAP_COMPANY_DB'),
    'username'      => env('SAP_USERNAME'),
    'password'      => env('SAP_PASSWORD'),
    'sslOptions'    => [
            'cafile'            => env('SAP_BASE_SSL_CA_PATH', 'path/to/certificate.crt'),
            'verify_peer'       => env('SAP_BASE_SSL_VERIFY_PEER', true),
            'verify_peer_name'  => env('SAP_BASE_SSL_VERIFY_PEER_NAME', true),
        ],
    'version'       => env('SAP_BASE_VERSION', 2)
```

As we can see, these settings can come from the .env environment variables file with the following variables:

```
#...
SAP_SECURE_URL=false
SAP_BASE_URL=192.168.1.1
SAP_BASE_PORT=50000
SAP_COMPANY_DB='MY_COMPANY_DB'
SAP_USERNAME='Demo01'
SAP_PASSWORD='Demo01#'
SAP_BASE_SSL_CA_PATH='path/to/certificate.crt'
SAP_BASE_SSL_VERIFY_PEER=true
SAP_BASE_SSL_VERIFY_PEER_NAME=true
SAP_BASE_VERSION=2
#...
```

You update config using this command:

```
    php artisan config:cache
```

Using SAPBOSL
-------------

[](#using-sapbosl)

Use SAPClient in your controller.

```
    use RealSoft\SAPBOSL\SAPClient;
```

Create a new Service Layer session.

```
    $sap = SAPClient::createSession(config('username'), config('password'), config('company_db'));
```

Grab the SAP Business One session.

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

Example of pulling orders using session saved above:

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

### License of SAPBOSL

[](#license-of-sapbosl)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Every ~0 days

Total

18

Last Release

1199d ago

PHP version history (3 changes)v0.0.1PHP ^8.1

v0.0.2PHP ~8.0

v0.0.5PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/40eb3967c80e8a801ea946d7f73834bb505cc573b63c03da13dc943b89f5e7f3?d=identicon)[@realsoft](/maintainers/@realsoft)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/realsoftgt-sap-b1-sl/health.svg)

```
[![Health](https://phpackages.com/badges/realsoftgt-sap-b1-sl/health.svg)](https://phpackages.com/packages/realsoftgt-sap-b1-sl)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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