Git Product home page Git Product logo

phpdishdailysongplugin's Introduction

PHPDish 每天一首歌插件

Latest Stable Version Total Downloads MIT License Scrutinizer

具体效果请前往官网查看https://www.phpdish.com

Installation

执行下面命令安装

$ composer require phpdish/daily-song-plugin

修改你的 app/AppKernel.php 文件注册插件:

// 注册插件
$plugins = [
     ...
     
     new PHPDish\DailySongPlugin\PHPDishDailySongPlugin()
];

执行下面命令安装数据库:

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

Usage

引用播放器

在你的模板文件中相应的位置写入下面的代码:

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

你会得到一个类似下面的html结构:

<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>

调整样式适配你的模板。

管理歌曲

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

Support

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

License

采用 MIT 开源许可证。

phpdishdailysongplugin's People

Contributors

slince avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.