tormorten/ebillett

A simple class for getting eBillett entries in PHP.

dev-master 2015-03-26 10:04 UTC

This package is auto-updated.

Last update: 2024-10-29 04:58:45 UTC


README

A simple class for getting eBillett entries in PHP.

Installation

You can install eBillett PHP using both composer or a manual include. The class is namespaced under eBillett.

Composer

Require using composer

composer require tormorten/ebillett

Include the composer autoloader in your project

require 'vendor/autoload.php';

Manual include

Include the class file

include 'src/eBillett.php';

Examples

The syntax for the class is quite simple

Create a new instance

$ebillett = new \eBillett\eBillett(1234);

Get all entries

$entries = $ebillett->get();

Get a single entry by show ID

$entry = $ebillett->get(54321);

Or get it in one single line

$entry = (new \eBillett\eBillett(1234))->get(54321);