2017 © Pedro Peláez
 

phpdish-plugin daily-song-plugin

Daily song plugin for phpdish application

image

phpdish/daily-song-plugin

Daily song plugin for phpdish application

  • Monday, March 19, 2018
  • by phpdish
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

PHPDish 每天一首歌插件

Latest Stable Version Total Downloads MIT License Scrutinizer, (*1)

具体效果请前往官网查看https://www.phpdish.com, (*2)

Installation

执行下面命令安装, (*3)

$ composer require phpdish/daily-song-plugin

修改你的 app/AppKernel.php 文件注册插件:, (*4)

// 注册插件
$plugins = [
     ...

     new PHPDish\DailySongPlugin\PHPDishDailySongPlugin()
];

执行下面命令安装数据库:, (*5)

$ bin/console doctrine:schema:update --force

Usage

引用播放器

在你的模板文件中相应的位置写入下面的代码:, (*6)

{{ render(controller('PHPDishDailySongPlugin:Song:getSong')) }}

你会得到一个类似下面的html结构:, (*7)

<div class="daily-song">
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" height=86 src="//music.163.com/outchain/player?type=2&id=xxx&auto=0&height=66"></iframe>
</div>

调整样式适配你的模板。, (*8)

管理歌曲

安装之后在你的后台 > 网站 下回出现“每天一首歌”导航,你可以在这里进行歌曲的维护。, (*9)

Support

如果有问题可以前往官网发帖或者直接在 issue 提问。, (*10)

License

采用 MIT 开源许可证。, (*11)

The Versions

19/03 2018

dev-master

9999999-dev

Daily song plugin for phpdish application

  Sources   Download

MIT

The Requires

 

The Development Requires

19/03 2018

0.0.2

0.0.2.0

Daily song plugin for phpdish application

  Sources   Download

MIT

The Requires

 

The Development Requires

19/03 2018

0.0.1

0.0.1.0

Daily song plugin for phpdish application

  Sources   Download

MIT

The Requires

 

The Development Requires