2017 © Pedro Peláez
 

symfony-bundle moonphase-bundle

This Bundle integrates some moon phase calculation stuff into a Symfony2 project.

image

swis/moonphase-bundle

This Bundle integrates some moon phase calculation stuff into a Symfony2 project.

  • Saturday, March 30, 2013
  • by swis
  • Repository
  • 1 Watchers
  • 1 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MoonPhaseBundle

Build Status, (*1)

This Bundle is designed to add some moon phase calculation stuff to your Symfony2 project., (*2)

Installation

Installation by Composer

If you use composer, add the bundle as dependency to the composer.json of your application, (*3)

for Symfony 2.x

"require": {
    ...
    "swis/moonphase-bundle": "dev-master"
    ...
},

Installation via git submodule

    git submodule add git://github.com/swis/MoonPhaseBundle.git vendor/bundles/Swis/Bundle/MoonPhaseBundle

Instantiate Bundle in your kernel init file

// app/AppKernel.php
<?php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Swis\Bundle\MoonPhaseBundle\SwisMoonPhaseBundleBundle(),
        );
    }

Base configuration

Actually, there is no configuration needed., (*4)

Usage

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();

        // ...
    }
}

The Versions

30/03 2013

dev-master

9999999-dev

This Bundle integrates some moon phase calculation stuff into a Symfony2 project.

  Sources   Download

MIT

The Requires

 

by Sascha Weyers

moon moon phase