2017 © Pedro Peláez
 

library lib-view-helper-git-repository

A library of ZF2 View Helpers for retrieving information about current application's local Git repository.

image

websafe/lib-view-helper-git-repository

A library of ZF2 View Helpers for retrieving information about current application's local Git repository.

  • Thursday, March 6, 2014
  • by websafe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Websafe\View\Helper\Git\Repository

A library of ZF2 - View Helpers for retrieving information about current application's local Git repository., (*1)

Quickstart

Add this package to your Composer based application

Add this package to composer.json and install in vendor/ by running:, (*2)

~~~~ bash composer require \ websafe/lib-view-helper-git-repository:0.1.*, (*3)



or ~~~~ bash php vendor/bin/composer.phar require \ websafe/lib-view-helper-git-repository:0.1.*

Enable provided view helpers in your ZF2 application

To enable the provided view helpers in your application - copy the file websafe.view.helper.git.repository.global.php.dist found in vendor/websafe/lib-view-helper-git-repository/config/, to config/autoload/websafe.view.helper.git.repository.global.php., (*4)

The copied file declares the required invokables for the provided view helpers in your ZF2 application., (*5)

~~~~ php return array( 'view_helpers' => array( 'invokables' => array( 'gitRepoCurrentBranch' => 'Websafe\View\Helper\Git\Repository\CurrentBranch', 'gitRepoDescription' => 'Websafe\View\Helper\Git\Repository\Description', ), ), );, (*6)





### Use provided view helpers in your view scripts #### Websafe\View\Helper\Git\Repository\CurrentBranch ~~~~ php <h1><?php echo $this->gitRepoCurrentBranch();?></h1>

Result:, (*7)

~~~~ html, (*8)

master




#### Websafe\View\Helper\Git\Repository\Description ~~~~ php < p>gitRepoDescription();?> < p>

Result:, (*9)

~~~~ html , (*10)

Unnamed repository; edit this file 'description' to name the repository., (*11)

~~~~

The Versions

06/03 2014

dev-master

9999999-dev http://github.com/websafe/lib-view-helper-git-repository/

A library of ZF2 View Helpers for retrieving information about current application's local Git repository.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin repository git helper zf2 zend view helper view local info abstracthelper

06/03 2014

0.1.0

0.1.0.0 http://github.com/websafe/lib-view-helper-git-repository/

A library of ZF2 View Helpers for retrieving information about current application's local Git repository.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin repository git helper zf2 zend view helper view local info abstracthelper