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.

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 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

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.


All versions of satcfdi-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
symfony/process Version ^7.4
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 metolabs/satcfdi-php contains the following files

Loading the files please wait ...