Download the PHP package korozcolt/payments-codeigniter4 without Composer

On this page you can find all versions of the php package korozcolt/payments-codeigniter4. 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 payments-codeigniter4

korozcolt/payments-codeigniter4

CodeIgniter 4 adapter for korozcolt/payments-core: Wompi, MercadoPago and ePayco with one API. Install, migrate, configure through .env. Everything else is auto-discovered by CodeIgniter.

Verified against a fresh codeigniter4/appstarter (v4.7): migration, route, Spark command, service('payments'), signed webhook over HTTP and Events::on() listeners.

Part of the korozcolt/payments ecosystem

The gateway logic (Wompi, MercadoPago, ePayco) is written once, in payments-core, and each framework gets a thin adapter. Install the adapter for your framework; Composer pulls the core in.

Package What it is
payments Laravel adapter (also the monorepo)
payments-core Framework-agnostic core: drivers, manager, webhooks
payments-codeigniter4 (this package) CodeIgniter 4 adapter
payments-slim Slim 4 / PSR-15 adapter
payments-symfony Symfony bundle

Why it is split this way, how the pieces relate and what is on the roadmap: ecosystem guide.

Install

The tables are created in the database group named by payments.dbGroup (default default). MySQLi, Postgre and SQLite3 are supported.

Configure (.env)

MercadoPago: payments.drivers.mercadopago.access_token, .public_key, .webhook_secret. ePayco: payments.drivers.epayco.public_key, .private_key, .p_cust_id_cliente, .p_key.

For anything beyond .env, copy src/Config/Payments.php to app/Config/Payments.php and extend it.

Charge

Webhooks

POST /payments/webhooks/{provider} is registered automatically (payments.registerRoutes, payments.webhookPrefix). Point the provider's dashboard at it.

Exclude it from CSRF protection in app/Config/Filters.php: public array $globals = ['before' => ['csrf' => ['except' => ['payments/webhooks/*']]]];

It answers exactly like the Laravel, Slim and Symfony adapters: 400 unknown/unavailable provider, 401 bad signature, 200 processed (also 200 + success:false for known failures so providers do not retry), 500 unexpected error.

Events

Names: payments.created, payments.approved, payments.rejected, payments.refunded, payments.webhook_received, payments.subscription_created, payments.subscription_cancelled, payments.subscription_charge_succeeded, payments.subscription_charge_failed.

Subscriptions (Wompi)

Wompi has no recurring-billing engine, so charge due cycles from cron:

Notes


All versions of payments-codeigniter4 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-pdo Version *
codeigniter4/framework Version ^4.5
guzzlehttp/guzzle Version ^7.5
korozcolt/payments-core Version ^1.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 korozcolt/payments-codeigniter4 contains the following files

Loading the files please wait ...