# powerful-form **Repository Path**: lackdoc/powerful-form ## Basic Information - **Project Name**: powerful-form - **Description**: 人人可用的在线表单工具 超级表单帮你收集和管理日常工作中的数据,把几小时的工作节约至零。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 47 - **Created**: 2020-02-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 超级表单 人人可用的在线表单工具 超级表单帮你收集和管理日常工作中的数据,把几小时的工作节约至零。 ## 安装与配置 1. 通过Git安装 ``` cd /var/www/ git clone https://git.oschina.net/kzeng/powerful-form.git mysite.com ``` 2. 初始化 执行 `init` 命令,然后选择 0 调试版本 `Development` or 1 正式版本`Production` . ```bash cd /var/www/mysite.com/ php init ``` 3. 配置Web服务器: Apache 服务器参考配置如下: ```apacheconf ServerName mysite.com ServerAlias www.mysite.com DocumentRoot "/var/www/mysite.com/" AllowOverride All Order deny,allow Allow from all Require all granted ``` Nginx 服务器参考配置如下: ```nginx server { charset utf-8; client_max_body_size 200M; listen 80; server_name mysite.com; root /var/www/mysite.com; location / { root /var/www/mysite.com/frontend/web; try_files $uri /frontend/web/index.php?$args; # avoiding processing of calls to non-existing static files by Yii location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { access_log off; expires 360d; try_files $uri =404; } } location /admin { alias /var/www/mysite.com/backend/web; rewrite ^(/admin)/$ $1 permanent; try_files $uri /backend/web/index.php?$args; } # avoiding processing of calls to non-existing static files by Yii location ~ ^/admin/(.+\.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar))$ { access_log off; expires 360d; rewrite ^/admin/(.+)$ /backend/web/$1 break; rewrite ^/admin/(.+)/(.+)$ /backend/web/$1/$2 break; try_files $uri =404; } location ~ \.php$ { include fastcgi_params; # check your /etc/php5/fpm/pool.d/www.conf to see if PHP-FPM is listening on a socket or port fastcgi_pass unix:/var/run/php5-fpm.sock; ## listen for socket #fastcgi_pass 127.0.0.1:9000; ## listen for port fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; try_files $uri =404; } #error_page 404 /404.html; location = /requirements.php { deny all; } location ~ \.(ht|svn|git) { deny all; } } ``` 4. 创建一个新数据库 调整`components['db']`数据库连接参数,其配置在`common/config/main-local.php`. ## 数据库 使用migrate迁移数据表,命令如下: ``` yii migrate yii migrate --migrationPath=backend/migrations/ yii migrate --migrationPath=vendor/pendalf89/yii2-filemanager/migrations ``` ## 基本功能 ### 已经支持功能 1. 用户网站注册 2. 用户通过自定义表单字段生成表单 3. 用户能方便的引用表单连接来使用自定义表单,用来收集其客户的信息。 4. 用户登录网站,可查看自己创建的表单及数据。 5. 用户能轻松的导出数据。 6. 表单创建时可以预览效果。 7. 表单提交成功后的结束页面。 8. 前端首页再设计,全屏风格。 9. 增加手机预览功能,二维码。 10. 新增提交表单后落脚页面的配置。 ### 即将支持功能 1. 收集数据的类型:单选、多选、图片 2. 增加表单页面头部图片展示或轮播。 3. 表单页底部增加企业名称,口号等信息。高级版本支持! 4. 内置典型行业模板表单,一键选用。高级版本支持! ## 屏幕截图
## 最后 觉得还行可以给个 star 鼓励下哦 ( ̄▽ ̄)~* 项目中还有很多问题和待优化的地方,我会持续更新这个项目。 如果发现有问题的地方或者建议等,很希望能告知联系,大家相互学习,共同进步呀。 ## 联系方式 邮箱:zengkai001@qq.com 微信:Zen_key QQ: 156870057