# betterlife **Repository Path**: mlnt/betterlife ## Basic Information - **Project Name**: betterlife - **Description**: 符合中国开发者思维方式的快速开发的框架,设计初衷快捷、简单、实用。 它包括一套实用的通用模版、后台管理模版、手机模版,并根据项目的需要,按照数据库的设计一键生成定制化的代码框架。 它自定义了一套快速开发报表的工具、Redis管理工具、数据库运维工具以协助快速开发。 - **Primary Language**: PHP - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-07-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # betterlife 符合中国开发者思维方式的快速开发的框架,设计初衷快捷、简单、实用。 它包括一套实用的通用模版、后台管理模版、手机模版,并根据项目的需要,按照数据库的设计一键生成定制化的代码框架。 它自定义了一套快速开发报表的工具、Redis管理工具、数据库运维工具以协助快速开发。 ## 帮助文档 * [帮助说明文档](https://www.gitbook.com/book/skygreen2001/betterlife) * [帮助文档源码](https://github.com/skygreen2001/betterlife.gitbook) * [本地说明文档](docs/) ## 下载源码 * **通过Github官网下载** 官网地址: https://github.com/skygreen2001/betterlife.git ``` > git clone https://github.com/skygreen2001/betterlife.git > git clone git@github.com:skygreen2001/betterlife.git ``` ## 安装说明 ### 安装目录 - 安装目录: 以下安装都在根路径/install 目录下 ### 安装PHP第三方库 * **安装 composer** 安装composer: http://docs.phpcomposer.com/00-intro.html * **安装目录下运行** 安装目录是根目录下的install目录, 即本说明文件目录下 - 运行composer ``` > composer install ``` [Mac电脑用户]: sudo composer install ### 可选安装 - [其它安装可选](install/README.md) - 该方式为可选项,可以不用执行。 ## 运行环境安装 以下工具任选一种即可 - [ampps](http://www.ampps.com) 可以直接在它上面下载安装(Wamp|Lamp|Mamp) - [Wamp](http://www.wampserver.com/en/) Windows下的Apache + Mysql + PHP [PhpStudy]: http://www.phpstudy.net/ - [Lamp](https://lamp.sh/) LAMP指的Linux、Apache,MySQL和PHP的第一个字母 [安装详细说明]: http://blog.csdn.net/skygreen_2001/article/details/19912159 - [Mamp](http://www.mamp.info/en/) Mac环境下搭建 Apache/Nginx、MySQL、Perl/PHP/Python 平台。 - [Xampp](https://www.apachefriends.org/zh_cn/index.html) XAMPP是完全免费且易于安装的Apache发行版,其中包含MariaDB、PHP和Perl。 - 本地运行PHP server: php -S localhost:8000) ## 云部署 * [阿里云](https://market.aliyun.com/developer) * [Heroku](https://devcenter.heroku.com/categories/php) * [docker](https://docs.docker.com) * [The full PHP development environment for Docker](http://laradock.io) * [PHPDocker](https://phpdocker.io/) * [docker-compose搭建nginx+php+mysql](https://github.com/kkmike999/docker-compose-php-nginx-mysql) * [Docker — 从入门到实践](https://yeasy.gitbooks.io/docker_practice/content/) * [Docker for Beginners](https://github.com/docker/labs/tree/master/beginner/) * [DevDock](https://github.com/iMacken/DevDock) * [vagrant](https://app.vagrantup.com/laravel/boxes/homestead-7): https://segmentfault.com/a/1190000000264347 ## 开发工具 * [Visual Studio Code](https://code.visualstudio.com/) * [Atom](https://atom.io) * [Atom IDE](https://ide.atom.io/) * [Sublime](http://www.sublimetext.com) ## 框架目录定义 - core : 框架核心支持文件 - taglib : 自定义标签,您也可以在自己的应用中定义自定义标签 - install: 安装目录 - misc : 引用第三方Js、Css、Image、Fonts资源目录 - tools : 开发项目中通常用到的工具,包括项目重用工具、代码生成工具、消除整站文件BOM头工具、压力测试工具等 - home : 应用目录,Web应用层所有代码都放在这里,每一个Web应用是一个子目录。 (每个应用目录名称需在Gc.php里的变量:$module_name里注册) - admin : 后台管理 - model : 通用模版 - report : 报表系统 - betterlife: 网站前台 - api : ajax请求服务端服务支持[手机或Web前端ajax请求返回json数据] - app : - html5: 自适应html5Web网页[内嵌在手机App里] - redis: Redis系统数据监控工具 - log : 日志目录,每天一个调试测试日志文件放在这里 - upload : 后台上传文件(如图片、pdf)放置目录 - docs : 框架帮助说明文档 - 重要的二级目录说明 - core/config : 配置文件[各个功能模块] - install/db : 框架数据库备份包括测试数据 - core/include : 常用的函数库 - api/mobile : 手机端ajax请求服务端返回json数据 - api/web : Pc端ajax请求服务端返回json数据 - upload/images : 上传图片放置路径 - upload/attachment: 批量导入/导出数据文件(如excel)放置目录 ## 参考资料 * **本框架帮助文档** > http://skygreen2001.gitbooks.io/betterlife-cms-framework/content/index.html * **本地运行服务器** > https://threejs.org/docs/index.html#manual/en/introduction/How-to-run-things-locally * **安装Composer** > http://www.phpcomposer.com/ * **下载Smarty** > https://github.com/smarty-php/smarty * **下载PhpSpreadsheet** > https://github.com/PHPOffice/PhpSpreadsheet ## 学习资料 - [学习Symfony](docs/learn/SYMFONY.md) - PHP The Right Way: https://laravel-china.github.io/php-the-right-way/