Download the PHP package tigamadou/emecef-laravel without Composer

On this page you can find all versions of the php package tigamadou/emecef-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package emecef-laravel

emecef-laravel

Laravel adapter for the Benin Republic e-MECeF (Electronic Tax Invoice) SDK. It wires emecef-core-php into Laravel via config, a facade, and Laravel’s HTTP and logging.

Part of the e-MECeF SDK ecosystem.

Requirements

Installation

The package auto-registers its service provider and the Emecef facade (Laravel 11+ package discovery). For older Laravel, add the provider and alias in config/app.php if needed.

Configuration

  1. Publish the config file:

  2. Store token, ifu, nim, and environment in the emecef_config table (see migrations). Config file is for Laravel-specific options only (e.g. log_channel).

  3. Publish and run migrations to create invoice and config tables:

    Models: Emecef\Laravel\Models\EmecefConfig, EmecefInvoice, EmecefInvoiceItem, EmecefInvoicePayment

  4. Optionally set log_channel for e-MECeF logs.

  5. (Optional) Publish views to customize the web interface:

    Views are copied to resources/views/vendor/emecef.

See docs/configuration.md for the full config reference.

Web interface

The package includes a web interface for all e-MECeF actions. After migrations and config, visit /{prefix}/ (default: /emecef/):

Route Action
GET /emecef/ Dashboard (API status, recent invoices)
GET /emecef/invoices List invoices
GET /emecef/invoices/create Create invoice form
GET /emecef/invoices/{id} View invoice (confirm/cancel if pending)
GET /emecef/config View configuration
GET /emecef/config/edit Create or edit configuration (single row)

Configure route_prefix and route_middleware in config/emecef.php. See docs/configuration.md.

Quick start

Use the facade or inject Emecef\Core\Client:

All operations and DTOs are the same as in the core package. Example: submit an invoice and confirm:

See docs/examples.md for more examples and error handling.

Documentation

Document Description
Overview What the package does and does not do, dependencies
Configuration Config file, routes, views, and how the client is built
Examples Facade, dependency injection, web interface, submit/confirm/cancel, errors
Schema Full database schema with API field mapping and descriptions
Core: DTOs and API All enums, request/response DTOs, and API operations

What this package provides

Business logic, DTOs, and API contract live in emecef-core-php; this adapter only integrates them with Laravel.

Development

License

Proprietary. See repository root for governance.


All versions of emecef-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
tigamadou/emecef-core-php Version ^0.0.2
illuminate/database Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/log Version ^10.0|^11.0
illuminate/routing Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
illuminate/view Version ^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tigamadou/emecef-laravel contains the following files

Loading the files please wait ...