Download the PHP package airmole/tjustb-libsp without Composer

On this page you can find all versions of the php package airmole/tjustb-libsp. 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 tjustb-libsp

tjustb-libsp

TJUSTB 图书馆 libsp 系统的 PHP HTTP Client。

该库对常用检索、热门借阅、最新图书、馆藏详情、统一认证登录、读者积分、书单管理等接口做了封装,默认请求地址为:

功能概览

环境要求

安装

快速开始

配置

类 Base 会在构造时读取配置并初始化请求环境。 默认配置文件路径:$_SERVER['DOCUMENT_ROOT'] . '/../.env'。

可用配置项如下:

Key 说明 默认值
LIBSP_URL libsp 系统地址 https://findtjustb.libsp.cn
LIBSP_PROXY cURL 代理地址 空
OPACSYS_TIMEOUT 请求超时(秒) 10

.env 示例:

API 一览(Airmole\TjustbLibsp\Libsp)

所有方法返回值均为 array(JSON 解码后),当 HTTP 状态码非 200 时会抛出异常。

基础与字典

不清楚的参数值都可以从数据字典接口中获取定义

热门与推荐

检索

检索参数较多,建议按需传参。两个接口文档注释中给出了参数参考:

书目详情与分析

登录与用户

借阅管理

积分与书单

异常处理建议

建议业务侧统一捕获 \Throwable 或 \Exception,避免请求失败时中断流程:

项目结构

许可证

本项目使用 GPL-3.0-or-later 许可证。


All versions of tjustb-libsp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
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 airmole/tjustb-libsp contains the following files

Loading the files please wait ...