GithubHelp home page GithubHelp logo

eventbritebundle's Introduction

EventbriteBundle

A Symfony2 bundle to interact with Eventbrite API. Uses Guzzle to perform requests to the Eventbrite API and extract information from it.

Installation

To install EventbriteBundle into your Symfony2 project, add these lines to your deps file

[guzzle]
    git=git://github.com/guzzle/guzzle.git

[EventbriteBundle]
    git=git://github.com/symfony-barcelona/EventbriteBundle.git
    target=/bundles/SFBCN/EventbriteBundle

On the autoload.php file add an entry with the SFBCN and Guzzle namespaces

<?php
$loader->registerNamespaces(array(
    // ...
    'Guzzle'    => __DIR__ . '/../vendor/guzzle/src',
    'SFBCN'     => __DIR__ . '/../vendor/bundles'
));

On the AppKernel.php file add a new instance of the SFBCNEventbriteBundle class to the $bundles array var

<?php
$bundles = array(
    // ...
    new SFBCN\EventbriteBundle\SFBCNEventbriteBundle(),
);

Usage

The EventbriteBundle by default register 2 main services and several repository services

  • eventbrite.persister. Deals with persisting entities back to Eventbrite.
  • eventbrite.mapper. Maps XML serialized entities to its object representation.
  • Repository classes
    • eventbrite.events
    • eventbrite.organizers
    • eventbrite.venues
    • (to be added)

So from another service/controller, something like this could be done

<?php
namespace SFBCN\WebsiteBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class EventsController extends Controller
{
    public function indexAction()
    {
        return array(
            'event' => $this->get('eventbrite.events')->findEvent('1');
        );
    }
}

(To be documented)

eventbritebundle's People

Contributors

theunic avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

trindade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.