2017 © Pedro Peláez
 

library mdash-bundle

E. Muravjov's typographer for Symfony

image

kix/mdash-bundle

E. Muravjov's typographer for Symfony

  • Friday, November 7, 2014
  • by kix
  • Repository
  • 1 Watchers
  • 1 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Mdash bundle

This is a Symfony 2 bundle for E. Muravjov's typograph., (*1)

Installation is simple. Just drop this line into your composer.json's require section:, (*2)

"kix/mdash-bundle": "0.5.x"

Add the bundle into your AppKernel.php:, (*3)

<?php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            // ...
            new \Kix\MdashBundle\KixMdashBundle(),
        );

After installing, a new mdash Twig filter will be available in your templates. It should be used as follows (let's assume that article object's text property contains text that needs proper formatting):, (*4)

{{ article.text | mdash }}

Also, there's a kix_mdash.typographer service available that's an instance of \EMT\EMTypograph. You can always request it from the container and use it in any way you like:, (*5)

<?php
class SomeClass implements ContainerAwareInterface
{

    public function processText()
    {
        /** @var \EMT\EMTypograph $typographer */
        $typographer = $this->container->get('kix_mdash.typographer');
    }

}

Stats

SensioLabsInsight, (*6)

Build Status, (*7)

Scrutinizer Code Quality, (*8)

The Versions

07/11 2014

dev-master

9999999-dev

E. Muravjov's typographer for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stepan Anchugov

symfony typographer mdash

07/11 2014

0.5.2

0.5.2.0

E. Muravjov's typographer for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stepan Anchugov

symfony typographer mdash

09/06 2014

0.5.1

0.5.1.0

E. Muravjov's typographer for Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

by Stepan Anchugov

symfony typographer mdash

03/06 2014

0.5.0

0.5.0.0

E. Muravjov's typographer for Symfony

  Sources   Download

The Requires

 

The Development Requires

by Stepan Anchugov

symfony typographer mdash