ecrmnn/lorem 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ecrmnn/lorem

最新稳定版本:1.0.3

Composer 安装命令:

composer require ecrmnn/lorem

包简介

Dummy text and images for Laravel

README 文档

README

Dummy text and images for Laravel

Install

composer require ecrmnn/lorem

After you have installed open your Laravel config file config/app.php and add the following lines. In the $providers array add the service providers for this package.

Ecrmnn\Lorem\LoremServiceProvider::class

Usage

Access Lorem by using the global helper lorem()

Text

<body>
    <div class="content">
        <!-- Returns one paragraph of lorem ipsum -->
        {!! lorem(1) !!}
    </div>
</body>
<body>
    <div class="content">
        <!-- Returns 23 paragraphs of lorem ipsum -->
        {!! lorem(23) !!}
    </div>
</body>

Image

<body>
    <div class="content">
        <!-- Returns an image (1024x1024) -->
        {!! lorem()->image() !!}
    </div>
</body>
<body>
    <div class="content">
        <!-- Returns an image (1000x600) with class -->
        {!! lorem()->image(1000, 600, ['class' => 'img-responsive']) !!}
    </div>
</body>

License

MIT © Daniel Eckermann

统计信息

  • 总下载量: 3.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固