Download the PHP package metolabs/satcfdi-php without Composer
On this page you can find all versions of the php package metolabs/satcfdi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package satcfdi-php
MetoLabs SAT-CFDI PHP
PHP client for metolabs-satcfdi-bridge, a stable JSON CLI interface on top of python-satcfdi.
The package communicates with satcfdi-bridge exec through stdin/stdout using Symfony Process. Secrets such as the e.firma private-key password are sent through stdin as part of the JSON request and are never placed in the process argument list.
Requirements
- PHP 8.2+
metolabs-satcfdi-bridgeinstalled and available inPATH- Symfony Process 7.4
Install the Python bridge first:
Then install this package:
CSF
To obtain the PDF bytes directly:
Compliance Opinion (32-D)
or:
Credentials from memory
When credentials come from object storage, a database, or Laravel Storage, the wrapper can create secure temporary files with directory permissions 0700 and file permissions 0600:
Temporary credentials are removed in finally blocks.
Generic operations
Convenience resources do not limit the bridge. Any registered bridge operation can be invoked directly:
This is useful when a new satcfdi-bridge operation is released before a dedicated PHP resource is added.
Portal helpers
Capabilities
Error handling
Security model
The executable receives only exec in argv:
Credential passwords and request payloads are written to the process stdin. They do not appear in ps aux command-line arguments. The package also keeps bridge diagnostics separate from the JSON protocol.
For file-based credentials, the wrapper reads the original files without copying them. For in-memory credentials, it uses a temporary private workspace and removes it after the operation.
Versioning
This library follows Semantic Versioning. The bridge JSON protocol is independently versioned. Version 1.x of this package currently speaks bridge schema 1.0.
Publishing
Create a public GitHub repository named MetoLabs/satcfdi-php, push master, and submit the repository to Packagist as metolabs/satcfdi-php. Packagist will read the package name and metadata from composer.json.
License
MIT.