2017 © Pedro Peláez
 

library a-vs-an

Determines whether 'a' or 'an' should precede a word

image

useallfive/a-vs-an

Determines whether 'a' or 'an' should precede a word

  • Friday, October 18, 2013
  • by m14t
  • Repository
  • 20 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AvsAn Symfony Bundle

PHP port of http://home.nerbonne.org/A-vs-An/, (*1)

Installation

With composer:, (*2)

{
    "require": {
        "useallfive/a-vs-an": "dev-master"
    }
}

Symfony 2

Add the bundle to your AppKernel#registerBundles() method., (*3)

$bundles = array(
    // ...
    new UseAllFive\AvsAnBundle\UseAllFiveAvsAnBundle(),
);

Sample usage

Symfony 2

class DefaultController extends Controller
{
    public function defaultAction()
    {
        $aVsAn = $this->get('a_vs_an');
        $result = $aVsAn->query('0800 number');
    }
}

```php print_r($result);, (*4)


```php Array ( [aCount] => 8 [anCount] => 25 [prefix] => 08 [article] => an )

The Versions

18/10 2013

dev-master

9999999-dev

Determines whether 'a' or 'an' should precede a word

  Sources   Download

Apache-2.0

by Zach Brown

article a prefix an avsan