Download the PHP package vsavritsky/morpherbundle without Composer
On this page you can find all versions of the php package vsavritsky/morpherbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vsavritsky/morpherbundle
More information about vsavritsky/morpherbundle
Files in vsavritsky/morpherbundle
Download vsavritsky/morpherbundle
More information about vsavritsky/morpherbundle
Files in vsavritsky/morpherbundle
Vendor vsavritsky
Package morpherbundle
Short Description service morpher
License MIT
Package morpherbundle
Short Description service morpher
License MIT
Keywords pagepage bundle
Please rate this library. Is it a good library?
Informations about the package morpherbundle
MorpherBundle
Installation
Require the vsavritsky/morpherbundle
in your composer.json and update your dependencies.
composer require vsavritsky/morpherbundle
{
"require": {
...
"vsavritsky/morpherbundle": "dev-master"
...
}
}
Add the AnchovyCURLBundle and VsavritskyMorpherBundle to your application's kernel:
public function registerBundles()
{
$bundles = array(
...
new Vsavritsky\MorpherBundle\VsavritskyMorpherBundle(),
...
);
add parameters access to parameters.yml:
vsavritsky_morpher.access.username: username
vsavritsky_morpher.access.pass: pass
update db: app/console doctrine:schema:update --force
Usage
// Simple call:
use Vsavritsky\MorpherBundle\Entity\RequestFacade;
...
public function indexAction() {
$morpher = $this->get('vsavritsky_morpher.request');
$plural = true;
$result = $morpher->inflect('Тест', RequestFacade::CASE_ROD, 'Дефолтное значение', $plural);
echo '<pre>';
print_r($result); exit();
exit();
}
consts:
`const CASE_ROD = 'Р';`
`const CASE_DAT = 'Д';`
`const CASE_VIN = 'В';`
`const CASE_TVOR = 'Т';`
`const CASE_PREDL = 'П';`
`const CASE_GDE = 'М';`
result: 'Тесту'
`
All versions of morpherbundle with dependencies
PHP Build Version
Package Version
The package vsavritsky/morpherbundle contains the following files
Loading the files please wait ....