dev-master
9999999-devThis Bundle integrates some moon phase calculation stuff into a Symfony2 project.
MIT
The Requires
- php >=5.3.0
- symfony/symfony >=2.1
by Samir Shah
by Sascha Weyers
moon moon phase
Wallogit.com
2017 © Pedro Peláez
This Bundle integrates some moon phase calculation stuff into a Symfony2 project.
This Bundle is designed to add some moon phase calculation stuff to your Symfony2 project., (*2)
If you use composer, add the bundle as dependency to the composer.json of your application, (*3)
"require": {
...
"swis/moonphase-bundle": "dev-master"
...
},
git submodule add git://github.com/swis/MoonPhaseBundle.git vendor/bundles/Swis/Bundle/MoonPhaseBundle
// app/AppKernel.php
<?php
// ...
public function registerBundles()
{
$bundles = array(
// ...
new Swis\Bundle\MoonPhaseBundle\SwisMoonPhaseBundleBundle(),
);
}
Actually, there is no configuration needed., (*4)
In your controller, use, (*5)
// src/Acme/HelloBundle/Controller/HelloController.php
namespace Acme\HelloBundle\Controller;
class HelloController
{
public function indexAction($name)
{
// ...
$lastNewMoonAsDateTime = $this->get('swis_moon_calculator')->getLastNewMoon();
// ...
}
}
This Bundle integrates some moon phase calculation stuff into a Symfony2 project.
MIT
moon moon phase