Download the PHP package omise/omise-php without Composer

On this page you can find all versions of the php package omise/omise-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.


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.

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

Omise PHP Client

omise-php is a PHP library designed specifically to connect with the Opn Payments API.


Note: Due to the PHP END OF LIFE cycle, we encourage you to run the Omise-PHP library on PHP version 7.4 or higher as there is no longer security support for any version lower than 7.4. Lack of support could cause security vulnerabilities.


Using Composer

You can install the library via Composer. If you don't already have Composer installed, first install it by following one of these instructions, depending on your OS:

  1. After Composer is installed, you can declare Omise-PHP as a project dependency by creating a composer.json file at the root of your project directory, with the following content:

  2. Run the following command to install the Omise-PHP library:

  3. Once you run the composer install command, the Composer will generate a vendor folder in the same directory as composer.json.

    Add the following line to the PHP script to load the library:

  4. You are ready to start using the library. View the configuration and quick start sections for usage examples.


If you are not using Composer, you can download the latest version of Omise-PHP. Then, follow the instructions to install Omise-PHP to the project.

  1. Extract the library to your project.

  2. Include the following line in your PHP file:

  3. You are ready to start using the library. View the configuration and quick start sections for usage examples.

Using Composer is recommended as you can easily keep the library up-to-date.


• Configure your public and secret keys

Before you make the first request to the Opn Payments API, you will need to configure your public key and secret key (these can be found on the Opn Payments Dashboard. Log in, then go to Keys from the sidebar menu).

configuring omise-php, public and secret keys

Place the following code next to the line where Omise-PHP library is loaded.

Reference: API Authentication.

• API version

To enforce the API version that the application must use, define OMISE_API_VERSION.
The version specified by this settings will override the version setting in your account. This is useful if you have multiple environments with different API versions (e.g. development on the latest but production on the older version).

API version can be found on the Opn Payments Dashboard. Log in, then go to API versions from the top-right menu.

configuring omise-php, API version

It is highly recommended to set OMISE_API_VERSION to the current version that you are using to prevent any issues that might arise from accidentally clicking update Omise-API version on the dashboard.

Quick start

From the preceding sections, your code will look similar to the following code:

Now, let's add the the code to retrieve your account information:

And that's it! You have just made a request to the Opn Payments API, easy huh?

Feel free to integrate the Opn Payment Gateway service as you desire to make it fit with your business flow.
Also, read the documents and view the example code to get more information if you need help.

Have fun!

Development and testing

To run an automated test suite, make sure you already have a PHPUnit in your local machine. Then run the PHPUnit:


Thanks for your interest in contributing to Omise PHP. We are looking forward to hearing your thoughts and are willing to review your changes.

The following sections are instructions for contributors who consider submitting changes and/or issues.

Submit the changes

You're all welcome to submit pull requests.

Learn more about submitting a pull request.

Submit the issue

Submit the issue through GitHub's issue channel.

Learn more about submitting an issue.


Omise-PHP is open-source software released under the MIT License.

All versions of omise-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 omise/omise-php contains the following files

Loading the files please wait ....