Download the PHP package chibex/ozioma-php without Composer

On this page you can find all versions of the php package chibex/ozioma-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 ozioma-php

ozioma-php

Latest Version on Packagist Total Downloads

A PHP API wrapper for Ozioma.

Requirements

Install

Via Composer

Via download

Download a release version from the releases page. Extract, then:

IMPORTANT

This is the first implementation of Ozioma API version 2.

Usage

Instantiate Ozioma class and pass you ACCESS-KEY as an argument to the construct. Then you can can start calling resource methods to fulfill your requests

0. Prerequisites

Confirm that your server can conclude a TLSv1.2 connection to Ozioma's servers. Most up-to-date software have this capability. Contact your service provider for guidance if you have any SSL errors.

1. Initiate sending message

When you submit message for sending our server queue's the message for delivery and after delivery your callback url is called to notify your system/website that your message has been sent.

send method parameters

2. Scheduling message

Most of the parameter are the same with send method above. Before scheduling message you need to include time_zone_id, call $ozioma->timezone->list(); for the list of time zones and their ids.

3. Add Subscriber to your Newsletter list

To add subscriber from your system/website to your Newsletter list, first login to your Ozioma dashboard and create the newsletter list. Next call Newsletter $ozioma->newsletter->list(); to pull your list with their ids

4. Add Subscribers to your Newsletter list

This is same as adding single subscriber but in this case you add multiple subscribers at once

5. Add Birthday Contact to your Birthday group

To add contact from your system/website to your birthday group, first login to your Ozioma dashboard and create the birthday group. Next call Birthday $ozioma->birthday->getGroupList(); to pull your groups with their ids and $ozioma->month->list(); for months ids

6. Add Birthday Contacts to your Birthday group

This is same as adding single contact but in this case you add multiple contacts at once

7. Closing Notes

Generally, to make an API request after constructing a ozioma object, Make a call to the resource/method thus: $ozioma->{resource}->{method}(); for gets, use $ozioma->{resource}(id) and to list resources: $ozioma->{resource}s().

Currently, we support: 'message', 'newsletter', 'birthday', 'month', 'balance' and 'timezones'. Check our API reference(link-ozioma-api-reference) for the methods supported. To specify parameters, send as an array.

Check SAMPLES for more sample calls

MetadataBuilder

This class helps you build valid json metadata strings to be sent when making transaction requests.

Add metadata

To turn off automatic snake-casing of Key names, do:

before you start adding metadata to the $builder.

Build JSON

Finally call build() to get your JSON metadata string.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

Contributing

Please see todo list for features already intended.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of ozioma-php with dependencies

PHP Build Version
Package Version
No informations.
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 chibex/ozioma-php contains the following files

Loading the files please wait ....