eftec/gentelella-bladeone
Composer 安装命令:
composer require eftec/gentelella-bladeone
包简介
Gentelella Admin Design for BladeOne Template System (PHP)
README 文档
README
A bootstrap 3 admin using bladeone template system (php).
Unlikely other products, it only requires a single file BladeOne.php to runs. So it could runs in vanilla php without any framework or any other external references.
Live template Running on heroku
Install using composer
composer require EFTEC/gentelella-bladeone
Install plain PHP
All the references and resources are included in this project.
Just download the folder to a web server and run /index.php
How it works:
<?php
include "vendor/autoload.php";
use eftec\bladeone;
$blade=new BladeOne\BladeOne(__DIR__.'/views',__DIR__ . '/compiled');
define("BLADEONE_MODE",1);
$values=['title'=>'Gentelella-bladeone | index ','username'=>'Hillary Trump'];
echo $blade->run("home.index",$values);
where home.index is the index template located in the folder \views\home
folders
-
\ = Controllers files. They simply use Bladeone and reder the views.
-
\views = The templates based in gentelella. The templates are compatible with Laravel's Blade
-
\views\_shared = The shared templates
-
\views\_shared\master.blade.php = The master template. It has the common code used for many pages but the login and error pages.
-
\views\_shared\masterfull.blade.php = Another master page that doesn't have the left and top menu
-
\views\_shared\header.php = The header (upper menu)
-
\views\_shared\head.php = The head <head> content
-
\views\_shared\leftmenu.php = The left menu
-
\views\_shared\leftmenu.php = The footer of the page (where is the copyright)
-
\views\_home = The pages content
-
\images = images used by the views.
-
\js = Custom javascript.
-
\css = Custom stylesheet
-
\vendor = third party php libraries (BladeOne)
-
\vendors = third party javascript libraries
-
\compiled = a folder when the compiled \views are created. It auto generates.
Dependencies PHP
- It requires BladeOne (PHP) 1.8 or higher. Included in the project.
- PHP 5.5 or higher.
Dependencies Javascript / Css
(all included)
- JQuery
- Bootstrap
- TODO: Others.
Important!:
The files:
\views\_shared\master.blade.php
\views\_shared\masterfull.blade.php
contain a code to Google analytics. You could remove it. Google analytics is used for the heroku demo.
<!-- google analytics, please remove it -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-99820696-1', 'auto');
ga('send', 'pageview');
</script>
<!-- google analytics, please remove it -->
Version
- 0.1 - 2017-05-21 first version (beta)
- 0.2 - 2017-05-24 second version. 99% its up and running. SCSS fixes.
Todo
templates
| Template | Version/Status |
|---|---|
| index.blade.php | 0.1 OK |
| calendar.blade.php | 0.1 OK |
| chartjs.blade.php | 0.1 OK |
| chartjs2.blade.php | 0.1 OK |
| contacts.blade.php | 0.1 OK |
| echarts.blade.php | 0.1 OK |
| e_commerce.blade.php | 0.2 OK |
| fixed_footer.blade.php | 0.2 OK |
| fixed_sidebar.blade.php | 0.2 OK |
| form.blade.php | 0.1 OK |
| form_advanced.blade.php | 0.1 OK |
| form_buttons.blade.php | 0.1 OK |
| form_upload.blade.php | 0.1 OK |
| form_validation.blade.php | 0.2 OK |
| form_wizards.blade.php | 0.2 OK |
| general_elements.blade.php | 0.2 OK |
| glyphicons.blade.php | 0.2 OK |
| icons.blade.php | 0.2 OK |
| inbox.blade.php | 0.2 OK |
| index.blade.php | 0.1 OK |
| index2.blade.php | 0.2 OK |
| index3.blade.php | 0.2 OK |
| invoice.blade.php | 0.2 OK |
| level2.blade.php | 0.2 OK |
| login.blade.php | 0.2 OK |
| map.blade.php | 0.1 NOT TESTED |
| media_gallery.blade.php | 0.2 OK |
| morisjs.blade.php | 0.2 OK |
| other_charts.blade.php | 0.2 OK |
| page_403.blade.php | 0.1 OK |
| page_404.blade.php | 0.1 OK |
| page_500.blade.php | 0.1 OK |
| plain_page.blade.php | 0.1 OK |
| pricing_tables.blade.php | 0.1 OK |
| profile.blade.php | 0.2 OK |
| projects.blade.php | 0.2 OK |
| project_detail.blade.php | 0.2 OK |
| tables.blade.php | 0.2 OK |
| tables_dynamic.blade.php | 0.2 OK |
| typography.blade.php | 0.2 OK |
| widgets.blade.php | 0.2 OK |
| xx.blade.php | 0.1 What is that? |
License information
BladeOne is licensed under The MIT License (MIT). Which means that you can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. But you always need to state that Jorge Castro Castillo is the original author of this library.
Gentelella copyright Colorlib (https://colorlib.com/). Licensed under The MIT License (MIT).
Animate copyright Daniel Eden (https://daneden.github.io). Licensed under The MIT License (MIT).
Autosize copyright Jack Moore. Licensed under The MIT License (MIT).
TODO: other licenses.
eftec/gentelella-bladeone 适用场景与选型建议
eftec/gentelella-bladeone 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 77 次下载、GitHub Stars 达 9, 最近一次更新时间为 2017 年 05 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「template」 「view」 「blade」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 eftec/gentelella-bladeone 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eftec/gentelella-bladeone 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 eftec/gentelella-bladeone 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
Illuminate View for Morningmedley.
Blade template for Kirby
Simple ASCII output of array data
View5 is a version of Blade Templates for the Mvc5 Framework
E2E Studios PHP Framework adaptation of leafsphp/blade package
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-23