Download the PHP package xdli/q_and_a without Composer

On this page you can find all versions of the php package xdli/q_and_a. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package q_and_a

laravel-admin extension

前提

首先要正确安装 laravel-admin ,参考官网:https://laravel-admin.org/docs/zh/installation

简介

这个扩展用来基于 laravel-admin 快速搭建一个问题与答案系统,用于试卷或者问卷的快速制作与管理。 同时含有用户提交答题的 api,这可以很方便前端人员开发。

后台功能截图

试卷列表 Image text 编辑试卷 Image text 用户答题 Image text

api路由截图

Image text

安装

1>

2>

3>

4>

说明:该命令创建 试卷表q_a_paper 、问题答案表 q_a_question、用户答题记录表 q_a_user_trains

注意

关于后台页面中的【添加试卷】和【编辑试卷】都是自定义的视图view文件,由命令 php artisan vendor:publish --provider="Xdli\Q_And_A\Q_And_AServiceProvider" 生成, 对应的 视图xxx.blade.php 文件 参考:resources/view/vendor/q_and_a目录中。 对应的 js 和 css 参考:public/vendor/q_and_a目录中。 如果有需要,可以自己更改上述文件

xxx.blade.php 中用到了 laravel-admin 自带的 Bootstrap3 的 标签tabs组件。如果你的 laravel-admin 已经使用了Bootstrap4,请更改 resources/view/vendor/q_and_a/xxx.blade.php 文件中的标签tabs组件相应代码。

访问

web

【试卷列表】: /admin/q_and_a
【创建试卷】: /admin/q_and_a/create
【用户答题】: /admin/user_qa

api

【获取试卷类别】:/q_and_a/papers/type [get请求]
【获取试卷等级】:/q_and_a/level [get请求]
【筛选查询试卷】:/q_and_a/search [get请求]

传参:
type //试卷类别 <可选>
train_level //试卷等级 <可选>
title //试卷标题 <可选,支持模糊匹配>`

【获取试卷详情】:/q_and_a/paper/(paper_id) [get请求]

说明: 如果参数paper_id 为空的话,默认返回试卷库中的status为1的第一张试卷`

【用户提交答卷(交卷)】: /q_and_a/save_train [post请求]

传参:
paper_id //试卷 id
all_use_time //用时 s
answers //答案 格式:answers = '{"question_id":"value","question_id":"value"}' ,即: json字符串格式
例如:'{"78":"a","79":"c","80":"c"}' `


All versions of q_and_a with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
encore/laravel-admin Version ~1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xdli/q_and_a contains the following files

Loading the files please wait ....