1 Star 0 Fork 46

baoguok / powerful-form

forked from kzeng / powerful-form 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

超级表单

人人可用的在线表单工具 超级表单帮你收集和管理日常工作中的数据,把几小时的工作节约至零。

安装与配置

  1. 通过Git安装
```bash
cd /var/www/
git clone https://git.oschina.net/kzeng/powerful-form.git mysite.com
```
  1. 初始化

    执行 init 命令,然后选择 dev or prod 环境.

    cd /var/www/mysite.com/
    php init
  2. 配置Web服务器:

    Apache 服务器参考配置如下:

    <VirtualHost *:80>
      ServerName mysite.com
      ServerAlias www.mysite.com
      DocumentRoot "/var/www/mysite.com/"
      <Directory "/var/www/mysite.com/">
        AllowOverride All
        Order deny,allow
        Allow from all
        Require all granted
      </Directory>
    </VirtualHost>

    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;
        }
    }
  3. 创建一个新数据库,调整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. 前端首页再设计.https://github.com/alvarotrigo/fullPage.js (全屏滚动插件演示:http://www.dowebok.com/demo/2014/77/)
  9. 增加手机预览功能,二维码。

即将支持功能

  1. 收集数据的类型:单选、多选、图片
  2. 增加表单页面头部图片展示或轮播。
  3. 表单页底部增加企业名称,口号等信息。高级版本支持!
  4. 内置典型行业模板表单,一键选用。高级版本支持!

屏幕截图

最后

觉得还行可以给个 star 鼓励下哦 ( ̄▽ ̄)~*

项目中还有很多问题和待优化的地方,我会持续更新这个项目。 如果发现有问题的地方或者建议等,很希望能告知联系,大家相互学习,共同进步呀。

邮箱:zengkai001@qq.com

空文件

简介

人人可用的在线表单工具 超级表单帮你收集和管理日常工作中的数据,把几小时的工作节约至零。 展开 收起
PHP
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/skott/powerful-form.git
git@gitee.com:skott/powerful-form.git
skott
powerful-form
powerful-form
master

搜索帮助