# One-Page **Repository Path**: hobbysh/one-page ## Basic Information - **Project Name**: One-Page - **Description**: 基于PHP Yaf的MVC扩展框架搭建一页网页制作展示系统,支持微服务部署、可视化编辑、多模板,可快速生成一页网页。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-07-25 - **Last Updated**: 2025-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: Bootstrap ## README # One-Page ### 前言 《一页网》是基于PHP Yaf的MVC扩展框架搭建一页网页制作展示系统,支持微服务部署、可视化编辑、多模板,可快速生成一页网页。 ### 描述 * 模版使用Bootsrap5制作,目前为固定的几个板块。 * 在管理模式中可以编辑 LOGO,菜单,板块,等相关信息。 * 图片需上传至COS后复制地址即可。 * 支持微信公众号访问分享 * 生成静态文件。通过微信云托管访问 ### 技术 [](http://www.php.net/) [](https://www.php.net/manual/zh/book.yaf.php) [](http://www.mysql.com/) [](https://getbootstrap.com/) ### 模块目录 * server,docker服务器配置文件 * conf,服务器配置 * asset,js/css 文件 * vendor,第三方插件 * application,项目主要目录,开发主要在这里 * application/controllers/ 控制器 * application/views/ 视图层 * application/views/ 视图层 * application/library/ 扩展库 ### 安装 * 获取源码 ```shell git clone https://gitee.com/hobbysh/one-page.git . ``` * 部署Docker环境 * 全新编译 ```shell docker build -t hobbysh/one-page . ``` * 镜像部署 ```shell docker run --name one-page -itd \ -v `pwd`/:/var/www/html \ -v `pwd`/server/php/fpm/php.ini:/etc/php/8.1/fpm/php.ini \ -v `pwd`/server/nginx/nginx.conf:/etc/nginx/nginx.conf \ -v `pwd`/server/nginx/sites-enabled/:/etc/nginx/sites-enabled \ -p 80:80 \ -p 3306:3306 \ hobbysh/one-page ``` ### 使用 * 访问: http://127.0.0.1 * 管理模式: http://127.0.0.1/?mode=admin * 生成静态文件: http://127.0.0.1/?mode=export ,根目录会生成 index.html * 复制3个文件到静态内容提供商,即可访问 * index.html * asset/js/main.js * asset/css/style.css ### 前台演示 * https://www.ohcard.cn/ ### 管理模式截图