Download the PHP package matfatjoe/sicredi-api without Composer

On this page you can find all versions of the php package matfatjoe/sicredi-api. 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 sicredi-api

Sicredi API

Tests, PHP, PHP CS Fixer

This package provides a PHP client for interacting with the Sicredi API. It allows developers to easily integrate Sicredi into their PHP applications. The client supports a wide range of features inside the Charges API, including creating and querying boletos, generating boletos slips, and retrieving payment reports.

The package is built on top of the Guzzle HTTP client and provides a simple, object-oriented API for interacting with the Sicredi API. It also includes comprehensive documentation and examples to help developers get started quickly.

While the package currently only supports the API for Boletos, it is designed with extensibility in mind, and can easily be extended to support additional functionality as needed.

Installation

First, you will need to install Composer following the instructions on their site.

Then, simply run the following command:

Usage

Once you have installed it, you can use the following steps to create a new Boleto:

  1. Create a new Client instance: Create a new Client instance by passing your SICREDI API key, cooperative number, post number, and beneficiary number as arguments. For example:

This example uses environment variables, but feel free to use any method you prefer to pass the parameters.

  1. Call the authenticate() method on the Client instance to authenticate with the Sicredi API by passing your Sicredi API username and password as arguments.

  2. Get the Boleto resource client from the Client instance by calling the boleto() method. For example:

  3. Create a new Boleto instance by passing the necessary parameters, such as beneficiary information, payee information, amount, and due date. For example:

  4. Call the create() method on the Boleto resource client to create the Boleto. For example:

  5. Store and/or do anything else you need to do with the Boleto information returned by the create() method.

Validation and Production

Before using the Cobrança API friom Sicredi, please follow the sequential steps for validation and production contained in the attached manual, available at docs/.

In summary, the process for validation includes the following steps:

  1. Access the Developer Portal
  2. Create an APP for Sandbox
  3. Request the Sandbox API Token
  4. Test the URLs available in the Homologation environment
  5. Create an APP for Production
  6. Request the Production API Token
  7. Test the URLs available in the Production environment
  8. Deploy your solution

To create the Sandbox APP, the developer must access the Sicredi Developer Portal, create an account or log in, and create a new application with the prefix "API Cobrança Sandbox".

After creating the Sandbox APP, the developer should request the Sandbox API Token through the menu 'Suporte' > 'Abrir Chamado' in the Developer Portal. Select the appropriate option and fill in the name of the APP created previously. The API Token will be generated within a few days and can be found in the 'Minhas Apps' menu, under the details of the respective application.

The URLs available for testing can be found in the API manual.

For the production process, repeat the same steps for creating the APP, but with a different name, such as "API Cobrança Production". After creating the APP, request the API Token for Production, following the same steps as for Sandbox.

Remember that, in all operations, the authentication token received must be informed in the x-api-key header of the request. This token is different for each environment.

If you have any doubts, please contact the support channels listed in the attached manual, or visit the Developer Portal.

Contributing

We welcome contributions to this package! If you would like to contribute, please follow these guidelines:

  1. Fork the repository and make your changes.
  2. Submit a pull request with a clear explanation of your changes and why they are necessary.
  3. Be responsive to feedback and open to making changes to your pull request.

Remember you can always check Sicredi's documentation available at docs/.

Thank you for your interest in contributing to this package!

License

This package is released under the MIT License.

Contact

If you have any questions or issues, please contact me at [email protected].


All versions of sicredi-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.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 matfatjoe/sicredi-api contains the following files

Loading the files please wait ...