定制 devolarax/raxos-shield 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devolarax/raxos-shield

最新稳定版本:1.0.1

Composer 安装命令:

composer require devolarax/raxos-shield

包简介

Domain-based licensing shield for Laravel applications. Authenticates against the Raxos Master Hub automatically by the deployment's domain — no license key file required.

README 文档

README

Domain-based licensing shield for Laravel applications.

Authenticates each deployment against the Raxos Master Hub automatically by the request's hostname — no license key file is required on the client side. If the domain is registered in the Master Hub and the license is active, the app runs. Otherwise, a locked-out page is shown.

Features

  • 🔐 Zero-config domain auth — install, deploy, done. The Master recognises the domain.
  • 🔏 HMAC-signed responses — every Master Hub reply is verified to defeat MITM.
  • 5-minute cache — minimal latency and load on the Master.
  • 🚦 Fail-closed — network errors block access (configurable grace period).
  • 📦 Auto-discovery — Laravel auto-registers the middleware.
  • 🛑 Bypass paths — static assets, health checks, and the Master Hub itself are exempt.

Requirements

  • PHP ≥ 8.1
  • Laravel 10 / 11 / 12 / 13

Installation

composer require devolarax/raxos-shield

That's it. The package auto-registers itself.

To customise (optional):

php artisan vendor:publish --tag=raxos-shield-config
php artisan vendor:publish --tag=raxos-shield-views

Or run the interactive installer:

php artisan raxos:install

How it works

Browser → Your Laravel app → RaxosShield middleware
                                  │
                                  ├─ Cache hit (5 min) → ✅ allow
                                  │
                                  └─ Cache miss → POST https://raxos.devolarax.com/sys-api/v1/verify-domain
                                                       body: {"domain": "yoursite.com"}
                                                       │
                                                       ├─ valid + HMAC OK → ✅ cache + allow
                                                       │
                                                       └─ invalid / HMAC fail → 🔒 lock screen

Configuration (after publishing)

config/raxos-shield.php:

return [
    // Cache TTL in minutes (default: 5).
    'cache_ttl' => 5,

    // Paths that bypass licensing entirely.
    'bypass_paths' => ['health', 'sitemap.xml', 'robots.txt', 'favicon.ico'],
];

Customising the lock screen

Publish views and edit resources/views/vendor/raxos-shield/errors/license.blade.php.

Support

License

Proprietary. See LICENSE.md.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固