ruudy/metronic-bundle
Composer 安装命令:
composer require ruudy/metronic-bundle
包简介
Symfony2 Bootstrap Backend/Admin Theme based on Metronic
关键字:
README 文档
README
I apologize for the inconvenience that my english can produce.
Thanks to Sonata Project, their code inspire me on how to do some things.
Thanks to Metronic - Responsive Admin Dashboard Template creators for the good treatment received.
Latest pages & templates adapted (UPDATES)
- Admin basic layout
- Advanced datatables
- Bootstramp forms based
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
Instalation
Installation is a quick 4 step process:
- Download over composer
- Enable the bundle
- Generate the required files for the bundle
- Download or Buy Metronic Theme and copy some assets folders
Step 1. Download over composer
Add RuudyMetronicBundle the require line to your composer.json:
"require": {
"ruudy/metronic-bundle": "@dev"
}
$ php composer.phar install
or just add it by running the command:
$ php composer.phar require ruudy/metronic-bundle '@dev'
Composer will install the bundle to your project's ruudy/metronic-bundle directory.
Step 2. Enable the bundle
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Ruudy\MetronicBundle\RuudyMetronicBundle(),
);
}
Step 3. Generate the required files for the bundle
At this point, the bundle is not yet ready. You need to generate the correct files and folders for the twig inherance:
$ php app/console ruudy:metronic:generate
This command will generate and skeleton bundle on src/Application/Ruudy/, and some folders to populate with the Metronic Template Assets
Step 4. Download or Buy Metronic Theme and copy some assets folders
This project is based on the Metronic - Responsive Admin Dashboard Template, so you need to buy it to get your license and all the assets and examples.
After you have your license, you only have to copy some folders in Bundle generated:
/metronic_3.0.1/metronic/assets/admin
INTO
/src/Application/Ruudy/MetronicBundle/Resources/public/admin
and
/metronic_3.0.1/metronic/assets/global
INTO
/src/Application/Ruudy/MetronicBundle/Resources/public/global
This bundle is stable with Metronic 3.0.1 version, buy i´m working on keep it up to date with the latest metronic releases
After copying the files you just have to install assets:
$ php app/console assets:install web --symlink
Usage
As you can see, this bundle is basically composed by a lot of twigs files.
You only have to take that blocks, zones or pieces and extend it by your own. If you have the metronic package examples it will be faster and easier to you.
The Basic idea is that you have the Metronic Theme separated on Zones and you can fill this Zones with Pieces, buy that Pieces can have some Zones to fill with another pieces. Is simple as think about container inherance.
As you can see i tried to maintain the metronic structure, so if metronic have an zone of code commented by:
<!-- BEGIN RESPONSIVE MENU TOGGLER -->
...// some html
<!-- END RESPONSIVE MENU TOGGLER -->
In this bundle you will have a zone defined as:
{% block responsive_menu_toggler %}{% endblock %}
And one twig called:
responsive_menu_toggler.html.twig
This file have the basic html of the block for create the html container, and you just need to decide what to do:
- Extend it and fill with the html directly copied from the html example in Metronic Package.
- Extend it and create your own html from scratch.
- Create your own responsive_menu_toggler and include it in the block.
Examples
You have some basic examples how this bundle works on the Resources\views\metronic\examples folder.
It will be growing.
ruudy/metronic-bundle 适用场景与选型建议
ruudy/metronic-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.34k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2014 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「metronick bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ruudy/metronic-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ruudy/metronic-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ruudy/metronic-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
Provide a way to secure accesses to all routes of an symfony application.
DMS Meetup API Bundle, enables Meetup API clients in services
Bundle Symfony DaplosBundle
Provides a Data Grid tables for your Symfony project.
统计信息
- 总下载量: 5.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 11
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-05