Download the PHP package gufran/authorize-net-cim-api without Composer

On this page you can find all versions of the php package gufran/authorize-net-cim-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 authorize-net-cim-api

Authorize Net CIM API Library

Not all methods are implemented but it is pretty easy to add new method. I wrote only CreateCustomerProfile, CreatetransactionRequest, GetHostedProfilePage, GetProfile and GetProfileIds because that was all I needed at the moment. I will implement other methods after finishing with my current project.

Usage

If you are using Laravel its pretty easy to use the library:

require in your composer file

"gufran/laravel-authorize-net-cim": "0.1.1"

Add:

'Gufran\AuthNet\LaravelBridge\ServiceProviders\AuthNetServiceProvider'

In service providers array and

'Authorize' => 'Gufran\AuthNet\LaravelBridge\Facades\AuthNet'

to facades array and publish the configuration:

php artisan config:publish gufran/authorize-net-cim-api

and add valid options in configuration file. The configuration file should be located at app/config/packages/gufran/authorize-net-cim-api

Now you can use the Facade Authorize to call methods: You call a valid method on facade and it will return an object of api delegate which allows you to fluently set all options, here is an example:

$api = Authorize::createCustomerProfile()
        ->setFirstName('gufran')
        ->setCity('someCity')
        ->setCardNumber('1234567890123456');

This api method now allows you to make the request and retrieve an instance of Response element, which is basically a wrapper around SimpleXMLElement with some helper methods like isValid() and isInvalid() to check for validity of result, of make request and fetch result directly. Here are the examples:

$result = $api->send(); // returns an instance of Response
$token = $api->getToken(); // make request, fetches result and pass the method call to Response object which in turn returns the token.

About API Delegate

Delegate class allows you to make arbitrary get/set function calls and pass them on to request and data model objects. All get method calls will get routed to the Response element and all set method calls will be sent to the API Payload object. Any invalid method calls, which includes get and set methods that do not exists on Response and Payload object, will throw an exception.


All versions of authorize-net-cim-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
lib-curl Version *
ext-simplexml Version *
guzzle/guzzle Version ~3.7
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 gufran/authorize-net-cim-api contains the following files

Loading the files please wait ....