承接 kevindierkx/gravatar-helper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kevindierkx/gravatar-helper

最新稳定版本:2.0.4

Composer 安装命令:

composer require kevindierkx/gravatar-helper

包简介

Helper package for creating Gravatar url's and image tags.

README 文档

README

Helper package for creating Gravatar url's and image tags.

Installation

To install this package you will need:

  • Laravel 5+
  • PHP 5.4

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "kevindierkx/gravatar-helper": "2.0.*"
}

Or you can run the composer require command from your terminal.

composer require kevindierkx/gravatar-helper:2.0.*

Once the package is installed you need to open app/config/app.php and register the required service provider.

'providers' => [
    Kevindierkx\GravatarHelper\Providers\LaravelServiceProvider::class,
]

Optionaly you can add the following line to your aliases.

'aliases' => [
    'Gravatar' => Kevindierkx\GravatarHelper\Providers\Facades\Gravatar::class,
]

Configuration

Run the following command to publish the package configuration.

php artisan vendor:publish

Usage

To parse an image tag.

Gravatar::image('email@example.com');

// <img src="https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404">

Or to parse an url.

Gravatar::url('email@example.com');

// https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 271
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-31