Download the PHP package stea/factura-electronica without Composer

On this page you can find all versions of the php package stea/factura-electronica. 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 factura-electronica

stea/factura-electronica

CI Latest version

A native PHP 8.5 / Laravel package for Costa Rica factura electrónica v4.4. It builds comprobante XML, signs it with XAdES-EPES using a Hacienda-issued PKCS#12 certificate, and submits it to the Ministerio de Hacienda reception API — with no dependency on external SOAP wrappers, Java signers, or proprietary tooling.

The signing layer is built cleanly on top of robrichards/xmlseclibs; the rest is plain PHP + illuminate/http. The core (DTOs, clave, XML builders, signer) has no Laravel dependency and is independently testable.

Status: the four document types this project actually transacts — FE, FEE, FEC, and MensajeReceptor — have been accepted by Hacienda's sandbox (api-stag). ND, NC, and TE build and validate against the official v4.4 XSDs but have not been exercised against a live response. This is community software, not affiliated with or endorsed by the Ministerio de Hacienda. Validate against your own Hacienda environment before relying on it in production. No warranty — see LICENSE.

Features

Requirements

Installation

Publish the config (Laravel):

Set the environment variables the config reads:

The certificate is read from a filesystem path, not an env var. Keep the .p12 out of version control and inject it at deploy time.

Usage

MensajeReceptor (accepting a received comprobante) uses emitirMensajeReceptor(MensajeReceptorDto).

Architecture

Testing

Document builders are validated against the official v4.4 XSDs. A gated integration suite can emit to the Hacienda sandbox when FE_SANDBOX=1 and credentials are present in the environment; it is skipped otherwise.

Costa Rica Hacienda v4.4 references

Official Ministerio de Hacienda / Dirección General de Tributación documentation this package implements (v4.4 is mandatory since 2025; it adds ProveedorSistemas, clave/consecutivo coding, and CodigoActividadReceptor):

Contributing

Issues and PRs welcome. See CONTRIBUTING.md for setup, testing, static analysis, code style, and PR guidelines. Please do not include real cédulas, certificates, signatures, or invoice data in fixtures or examples — use synthetic values only.

License

MIT — see LICENSE.


All versions of factura-electronica with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-dom Version *
ext-openssl Version *
ext-libxml Version *
robrichards/xmlseclibs Version ^3.1
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.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 stea/factura-electronica contains the following files

Loading the files please wait ...