2017 © Pedro Peláez
 

symfony-bundle latex-encoder-annotation-bundle

Latex Encoder Annotation Bundle

image

stormdelta/latex-encoder-annotation-bundle

Latex Encoder Annotation Bundle

  • Wednesday, September 30, 2015
  • by Brian Gharibaan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

StormDelta LatexEncoder AnnotationBundle

This bundle is still under development!, (*1)

Use annotations to safely encode values to LaTeX., (*2)

Installation

composer require stormdelta/latex-encoder-annotation-bundle

Configuration

Configure Bundle in app/AppKernel.php, (*3)

//app/AppKernel.php

use ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new StormDelta\LatexEncoder\AnnotationBundle\StormDeltaLatexEncoderAnnotationBundle(),
            ...
        );
        ...
}

Usage

Use annotations in the entity, (*4)

//src/AppBundle/Entity/LatexEntity.php

namespace AppBundle\Entity\LatexEntity;

use StormDelta\LatexEncoder\AnnotationBundle\Annotation\LatexEncoderAnnotation as LatexEncode;

class LatexEntity
{
    /**
     * @LatexEncode
     */
    $variable;
}

Encode in the controller, (*5)

//src/AppBundle/Controller/DefaultController.php

namespace AppBundle\Controller;

use ...

class DefaultController extends Controller
{
    ...
    public function indexAction(...)
    {
        $entity = new LatexEntity();
        ...
        $entity = $this->get('stormdelta.latexencoder.driver')->encode($entity);
        ...
        return array('entity' => $entity);
    }
}

"Advanced" Usage

Use LatexEncoderFollowAnnotation in the entity to encode related entities, (*6)

//src/AppBundle/Entity/LatexEntity.php

namespace AppBundle\Entity\LatexEntity;

...
use StormDelta\LatexEncoder\AnnotationBundle\Annotation\LatexEncoderFollowAnnotation as LatexFollow;

class LatexEntity
{
    /**
     * @ORM\OneToMany(targetEntity="...")
     * @LatexFollow
     */
    $variables;
}

The Versions

30/09 2015

dev-master

9999999-dev

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

30/09 2015

v0.1.7

0.1.7.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

29/09 2015

v0.1.6

0.1.6.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

29/09 2015

v0.1.5

0.1.5.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

29/09 2015

v0.1.4

0.1.4.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

29/09 2015

v0.1.3

0.1.3.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex

29/09 2015

v0.1.2

0.1.2.0

Latex Encoder Annotation Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar Brian Gharibaan

encoder encode latex