Skip to content

sebastiaanfranken/project-manager

Repository files navigation

#Projectplanner

This is my custom projectplanner built on top of Laravel 4. It'st still work in progress

##Custom functions

nill( $var, $message )

A simple function that prints $var if it's set, otherwise it prints $message, for example print nill($username, 'No username set');

flash( $message, $type = 'info' )

A wrapper around Laravel's Session::flash( $message ) function to create a custom HTML message, for example flash('The username was set', 'succes');

timestamp( $timestamp, $default = null, $format = 'd-m-Y' )

A function that prints $timestamp in the format of $format, or if $timestamp is not set it prints $default, for example print timestamp($user->created_at, 'This user is older than the system...');

print_array( $input = array(), $field = null, $divider = ',' )

Prints a single field ($field) from the input ($input), if there are multiple values with the same key in the arrey it'll return all of them divided by $divider. For example print prin_array($users, 'username');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published