2017 © Pedro Peláez
 

library support

A Laravel support package with some nice to have extensions.

image

stayallive/support

A Laravel support package with some nice to have extensions.

  • Friday, April 22, 2016
  • by stayallive
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8,667 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel support package

A Laravel support package with some nice to have extensions., (*1)

Installation

Add "stayallive/support" : "1.*" to your composer.json., (*2)

Then follow the usage instructions for each component listed below..., (*3)

Blade extensions

Installation

Add 'Stayallive\Support\Blade\BladeServiceProvider' to the providers section in your app.php config file., (*4)

Provides

  • @set('varname', $value)

Gravatar

Installation

Add 'Stayallive\Support\Gravatar\GravatarServiceProvider' to the providers section in your app.php config file., (*5)

Add 'Gravatar': 'Stayallive\Support\Gravatar\GravatarFacade' to the aliases section in your app.php config file., (*6)

Usage

Get a gravatar image url
/**
 * Build a gravatar url.
 *
 * @param        $email
 * @param int    $size
 * @param string $default
 * @param bool   $https
 *
 * @return string
 */
public function buildURL($email, $size = 100, $default = \Gravatar::DEFAULT_MYSTERYMAN, $https = true) { ... }

So you can call this like Gravatar::buildUrl($email, 500, Gravatar::DEFAULT::IDENTICON) to get a 500x500 image that defaults to a Identicon., (*7)

Check if a user has a Gravatar set

if (Gravatar::exists($email)) {
    echo 'Yep, this one has a pretty face set!';
} else {
    echo 'No, no, no, this one does not want to be seen!';
}

The Versions

22/04 2016

dev-master

9999999-dev

A Laravel support package with some nice to have extensions.

  Sources   Download

MIT

The Requires

 

laravel extension blade support

22/04 2016

v1.3.0

1.3.0.0

A Laravel support package with some nice to have extensions.

  Sources   Download

MIT

The Requires

 

laravel extension blade support

24/09 2015

v1.2.0

1.2.0.0

A Laravel support package with some nice to have extensions.

  Sources   Download

MIT

The Requires

 

laravel extension blade support

19/01 2015

v1.1.0

1.1.0.0

A Laravel support package with some nice to have extensions.

  Sources   Download

MIT

The Requires

 

laravel extension blade support

18/07 2014

v1.0.0

1.0.0.0

A Laravel support package with some nice to have extensions.

  Sources   Download

MIT

The Requires

 

laravel extension blade support