PHPackages                             hirvi/ticketco-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hirvi/ticketco-php

ActiveLibrary[API Development](/categories/api)

hirvi/ticketco-php
==================

Simple API wrapper for TicketCo.no

v1.0.23(8y ago)123MITPHPPHP &gt;=5.6.0

Since May 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HirviAS/ticketco-php)[ Packagist](https://packagist.org/packages/hirvi/ticketco-php)[ Docs](https://hirvi.no/)[ RSS](/packages/hirvi-ticketco-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

TicketCo API - PHP Client [![Build Status](https://camo.githubusercontent.com/0ea0b15f41302748a9204dc3d5eaf341717997897f180fb302739189dfff0683/68747470733a2f2f7472617669732d63692e6f72672f486972766941532f7469636b6574636f2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HirviAS/ticketco-php)
=====================================================================================================================================================================================================================================================================================================================

[](#ticketco-api---php-client-)

- [Installation](#installation)
- [Laravel Users](#laravel-users)
    - [Service Provider](#service-provider)
    - [Facade](#facade)
    - [Configuration](#configuration)
- [Usage](#usage)
    - [Initialize](#initialize)
    - [Get all events](#fetch-all-events)
    - [Get single event](#get-single-event)
    - [Get event status](#get-event-status)
- [Collection object](#collection-object)
- [Further documentation](#further-documentation)

Installation
============

[](#installation)

Add the following to your composer.json

```
{
   "require": {
      "hirvi/ticketco-php": "~1.0"
   }
}
```

Laravel Users
=============

[](#laravel-users)

We've added some classes to help Laravel 5 users make use of the library with ease.

#### Service Provider

[](#service-provider)

You can register our [service provider](http://laravel.com/docs/5.4/providers) in your `app.php` config file.

```
// config/app.php
'providers' => [
    ...
    TicketCo\Laravel\TicketCoServiceProvider::class
]
```

#### Facade

[](#facade)

If you prefer [facades](http://laravel.com/docs/5.4/facades), make sure you add this as well:

```
// config/app.php
'aliases' => [
    ...
    'TicketCo' => TicketCo\Laravel\TicketCoFacade::class
]
```

#### Configuration

[](#configuration)

There are only one configuration option you need to fill in. Publish the config by running:

```
php artisan vendor:publish

```

Now, the config file will be located under `config/ticketco.php`:

```
