Download the PHP package xiaohuyun/xhysanctum without Composer

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

xiaohuyun xhysanctum

简介

小狐云 xhysanctum 为spa和简单的api提供了一个轻量级的认证系统。基于官方sanctum开发的。

官方文档

文档可以在Laravel website.

行为准则

请审阅并遵守 Code of Conduct.

安全漏洞

请审阅【我们的安全政策】(https://github.com/feng2009/xhysanctum/security/policy) on how to report security vulnerabilities.

许可证

小狐云 xhysanctum 是一个开源软件,根据[MIT许可证]授权 MIT license.

安装过程

composer require xiaohuyun/xhysanctum

接下来,你需要使用 vendor:publish Artisan 命令发布 Sanctum 的配置和迁移文件。Sanctum 的配置文件将会保存在 config 文件夹中

php artisan vendor:publish --provider="Xiaohuyun\xhysanctum\SanctumServiceProvider"

最后,你需要执行数据库迁移文件。Sanctum 将创建一个数据库表用于存储 API 令牌:

php artisan migrate

假如你需要使用 Sanctum 来验证 SPA,你需要在 app/Http/Kernel.php 文件中将 Sanctum 的中间件添加到你的 api 中间件组中:

use Xiaohuyun\xhysanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;

'api' => [ EnsureFrontendRequestsAreStateful::class, 'throttle:60,1', \Illuminate\Routing\Middleware\SubstituteBindings::class, ],


All versions of xhysanctum with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-json Version *
illuminate/contracts Version ^6.9|^7.0
illuminate/database Version ^6.9|^7.0
illuminate/support Version ^6.9|^7.0
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 xiaohuyun/xhysanctum contains the following files

Loading the files please wait ....