2017 © Pedro Peláez
 

library dumbquotes

Pugre all the dumb quotes!

image

jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  • Wednesday, June 19, 2013
  • by jonnybarnes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Dumbquotes

Build Status, (*1)

This looks for dumbquotes and other typeographical features replaces them with their smart equivalent., (*2)

It will replace, (*3)

  • straight quotes
  • ellipses
  • dashes

This has been made to deal with plain text. It fits into my workflow by first applying the tranform() method and then applying a Markdown parser to the result. To do so the other way round would result in having to deal with HTML which would make the code vastly more complex., (*4)

To use this first we must install it. Then we need to declare the namepsace then instantiate the parser., (*5)

Edit your composer.json requires section to inlcude jonnybarnes/dumbquotes:, (*6)

{
    "require": {
        "jonnybarnes/dumbquotes": "dev-master"
    }
}

then in your PHP:, (*7)

<?php
use \Jonnybarnes\Dumbquotes\DumbquotesParser;

$parser = new DumbquotesPraser();

Then we can replace our dumb typography with the transform() method like so:, (*8)

$original = 'Let\'s try this!';
$transformed = $parser->tranform($original);

As simple as that., (*9)

The Versions

19/06 2013

dev-master

9999999-dev https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

19/06 2013

v1.0

1.0.0.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

17/06 2013

v0.5.1

0.5.1.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

17/06 2013

v0.5

0.5.0.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

17/06 2013

v0.4

0.4.0.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

17/06 2013

v0.3

0.3.0.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

  • php >=5.3.0

 

The Development Requires

typography dumbquotes smartquotes

16/06 2013

v0.2

0.2.0.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

 

The Development Requires

typography dumbquotes smartquotes

15/06 2013

v0.1.1

0.1.1.0 https://github.com/jonnybarnes/dumbquotes

Pugre all the dumb quotes!

  Sources   Download

CC0

The Requires

 

typography dumbquotes smartquotes

15/06 2013

v0.1

0.1.0.0

Pugre all the dumb quotes!

  Sources   Download

The Requires