Giter Site home page Giter Site logo

liiphellobundle's Introduction

Installation

  1. Add this bundle to your project as Git submodules:

     $ git submodule add git://github.com/liip/LiipHelloBundle.git vendor/bundles/Liip/HelloBundle
    
  2. Add the Liip namespace to your autoloader:

     // app/autoload.php
     $loader->registerNamespaces(array(
           'Liip' => __DIR__.'/../vendor/bundles',
           // your other namespaces
     ));
    
  3. Add this bundle to your application's kernel:

     // application/ApplicationKernel.php
     public function registerBundles()
     {
         return array(
             // ...
             new Liip\HelloBundle\LiipHelloBundle(),
             // ...
         );
     }
    

Alternatively download and install the following Symfony2 Standard Edition fork:

    $ git clone https://github.com/lsmith77/symfony-standard
    $ git checkout -b techtalk origin/techtalk

What is this?

Just a very simple example bundle using services for controllers and the following Bundles:

  • FOSRestBundle
  • FOSUserBundle
  • FOSFacebookBundle
  • DoctrinePHPCRBundle
  • LiipContainerWrapperBundle
  • LiipVieBundle
  • LiipImagineBundle
  • LiipDoctrineCacheBundle
  • LiipThemeBundle
  • LiipHyphenatorBundle

Some example URL's to call

HTML output: http://symfony-standard.lo/app_dev.php/liip/hello/foo

JSON output: http://symfony-standard.lo/app_dev.php/liip/hello/foo.json

XML output: http://symfony-standard.lo/app_dev.php/liip/hello/foo.xml

Redirect to the '_welcome' route: http://symfony-standard.lo/app_dev.php/liip/hello

JSON (actually JSON-LD) output using a custom serialization handler: http://symfony-standard.lo/app_dev.php/liip/serializer.json XML output using a custom serialization handler: http://symfony-standard.lo/app_dev.php/liip/serializer.xml

Requires PHPCR ODM and Jackrabbit to be installed: http://symfony-standard.lo/app_dev.php/liip/phpcr/bar

Facebook login button: http://symfony-standard.lo/app_dev.php/liip/facebook

Check facebook login status: http://symfony-standard.lo/app_dev.php/liip/facebook-check

Using the SensioFrameworkExtraBundle together with the RestBundle view layer: http://symfony-standard.lo/app_dev.php/liip/extra/foo

Using the SensioFrameworkExtraBundle together with the RestBundle view layer outputting json: http://symfony-standard.lo/app_dev.php/liip/extra/foo.json

Using the SensioFrameworkExtraBundle together with the RestBundle view layer to redirect to the '_welcome' route: http://symfony-standard.lo/app_dev.php/liip/extra

Using the FOSRestBundle routing generation http://symfony-standard.lo/app_dev.php/liip/hello/rest/articles http://symfony-standard.lo/app_dev.php/liip/hello/rest/article http://symfony-standard.lo/app_dev.php/liip/hello/rest/new/articles

Using the FOSRestBundle ExceptionController http://symfony-standard.lo/app_dev.php/liip/exception.html

Using the FOSRestBundle to handle a failed validation http://symfony-standard.lo/app_dev.php/liip/validation_failure.json

Using the FOSRestBundle and VieBundle using RDFa http://symfony-standard.lo/app_dev.php/liip/hello/vie/foo

Using the LiipHyphenatorBundle http://symfony-standard.lo/app_dev.php/liip/hyphenator

Using a custom handler with FOSRestBundle to generate RSS http://symfony-standard.lo/app_dev.php/liip/customHandler.rss

Using SymfonyCmfPHPCRBrowserBundle to read out the data from a PHPCR database: http://symfony-standard.lo/app_dev.php/liip/tree

Using LiipImagineBundle example http://symfony-standard.lo/app_dev.php/liip/imagine

Using LiipDoctrineCacheBundle with apc example http://symfony-standard.lo/app_dev.php/liip/apc

liiphellobundle's People

Contributors

lsmith77 avatar

Stargazers

Ernesto Simionato avatar

Watchers

Ernesto Simionato avatar James Cloos avatar

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.