PHPackages                             julio101290/boilerplateservicelayer - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. julio101290/boilerplateservicelayer

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

julio101290/boilerplateservicelayer
===================================

A CodeIgniter 4 boilerplate repository for building a service layer to integrate with SAP Business One. It includes pre-built CRUD functionality for products and companies, with features for inventory management, invoice generation (with SAT fields), and user authorization.

v1.2.5(1w ago)0451MITPHPPHP ^7.3 || ^8.0

Since Sep 18Pushed 3w agoCompare

[ Source](https://github.com/julio101290/boilerplateservicelayer)[ Packagist](https://packagist.org/packages/julio101290/boilerplateservicelayer)[ RSS](/packages/julio101290-boilerplateservicelayer/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (36)Versions (27)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/3067c7abf748125eef6b18b2684e832b6faddaf7339a4d8ea2dac80a451a6916/68747470733a2f2f706f7365722e6f6b76706e2e6f72672f6a756c696f3130313239302f626f696c6572706c617465736572766963656c617965722f762f737461626c65)](https://packagist.org/packages/julio101290/boilerplateservicelayer)[![Total Downloads](https://camo.githubusercontent.com/8f85187b7a030d6351852e41f71091a071833280186f033b94346051949539be/68747470733a2f2f706f7365722e6f6b76706e2e6f72672f6a756c696f3130313239302f626f696c6572706c617465736572766963656c617965722f646f776e6c6f616473)](https://packagist.org/packages/julio101290/boilerplateservicelayer)[![Latest Unstable Version](https://camo.githubusercontent.com/7e085c73a45a0180c47b8bcb4af3b1d116dbcfd775e96d7ac15f97ae351324c0/68747470733a2f2f706f7365722e6f6b76706e2e6f72672f6a756c696f3130313239302f626f696c6572706c617465736572766963656c617965722f762f756e737461626c65)](https://packagist.org/packages/julio101290/boilerplateservicelayer)[![License](https://camo.githubusercontent.com/8b1c3e1063f5fe3015f605a4fa02148739f47c3867a2d695a6c6c7be842f1ddd/68747470733a2f2f706f7365722e6f6b76706e2e6f72672f6a756c696f3130313239302f626f696c6572706c617465736572766963656c617965722f6c6963656e7365)](https://packagist.org/packages/julio101290/boilerplateservicelayer)

[![thumbnail](https://private-user-images.githubusercontent.com/11257577/391684795-97c1d071-6f6c-44fe-89f2-bd2eb76c7310.jpeg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMxNDkzMjAsIm5iZiI6MTc4MzE0OTAyMCwicGF0aCI6Ii8xMTI1NzU3Ny8zOTE2ODQ3OTUtOTdjMWQwNzEtNmY2Yy00NGZlLTg5ZjItYmQyZWI3NmM3MzEwLmpwZWc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwNFQwNzEwMjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzY0NjBmNjNkZmQwOGFlNWU1NmE2ZWVhNTQ5MTZkM2FlNWU0YjI5MmY3NGNmZmY0ZjQ1ODI5ZTQyZmYyYjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZqcGVnIn0.70nqVCCWS5ZvVWLsKM20wzcYMsurTwcIVPrkC1yhMts)](https://private-user-images.githubusercontent.com/11257577/391684795-97c1d071-6f6c-44fe-89f2-bd2eb76c7310.jpeg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMxNDkzMjAsIm5iZiI6MTc4MzE0OTAyMCwicGF0aCI6Ii8xMTI1NzU3Ny8zOTE2ODQ3OTUtOTdjMWQwNzEtNmY2Yy00NGZlLTg5ZjItYmQyZWI3NmM3MzEwLmpwZWc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwNFQwNzEwMjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzY0NjBmNjNkZmQwOGFlNWU1NmE2ZWVhNTQ5MTZkM2FlNWU0YjI5MmY3NGNmZmY0ZjQ1ODI5ZTQyZmYyYjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZqcGVnIn0.70nqVCCWS5ZvVWLsKM20wzcYMsurTwcIVPrkC1yhMts)

CodeIgniter 4 Boilerplate Service Layer CFDI V4.0
-------------------------------------------------

[](#codeigniter-4-boilerplate-service-layer-cfdi-v40)

**CodeIgniter4 Boilerplate Service Layer** provides a CRUD MVC for managing *SAP Service Layer* connections per company.
It includes description, URL, port, credentials, and company database fields.

This module integrates with other boilerplates (Companies, BranchOffice, Log) to centralize Service Layer configuration.

---

Requirements
------------

[](#requirements)

- PhpCfdi\\SatCatalogos
- julio101290/boilerplatelog
- julio101290/boilerplatecompanies
- julio101290/boilerplatebranchoffice

---

Installation
------------

[](#installation)

### Run composer commands

[](#run-composer-commands)

```
composer require phpcfdi/sat-catalogos
composer require julio101290/boilerplatelog
composer require julio101290/boilerplatecompanies
composer require julio101290/boilerplatebranchoffice
composer require julio101290/boilerplateservicelayer
```

### Run migrations and seeders

[](#run-migrations-and-seeders)

```
php spark boilerplatecompanies:installcompaniescrud
php spark boilerplatelog:installlog
php spark boilerplatebranchoffice:installbranchoffice
php spark boilerplateservicelayer:installservicelayer
```

---

### BaseController.php Configuration

[](#basecontrollerphp-configuration)

Add the SAT Catalogs Factory and configure global variables with SQLite DSN:

```
