定制 olakunlevpn/laravel-installer-license 二次开发

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

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

olakunlevpn/laravel-installer-license

最新稳定版本:v1.1.0

Composer 安装命令:

composer require olakunlevpn/laravel-installer-license

包简介

License verification and account management plugin for Laravel Installer

README 文档

README

Laravel Installer - License Verification

Latest Version Total Downloads

This package adds license verification to Laravel Installer. It validates purchase codes via your API before allowing installation to proceed.

To learn all about it, head over to the extensive documentation.

Here's what you can do:

// Set your license API endpoint
LICENSE_API_URL=https://api.yoursite.com/verify

The package automatically verifies licenses:

// User enters license key
// Package calls your API
// On success: Installation continues
// On failure: Shows error message

Your API receives the license data:

{
    "license_key": "XXXX-XXXX-XXXX-XXXX",
    "email": "user@example.com",
    "domain": "customer-site.com"
}

Return verification result:

{
    "success": true,
    "message": "License verified successfully",
    "data": {
        "license_type": "professional",
        "expires_at": "2025-12-31"
    }
}

The verified license is stored in the database after installation completes.

Installation

You can install the package via composer:

composer require olakunlevpn/laravel-installer-license

Create the licenses table migration:

php artisan make:migration create_licenses_table

Configure your license API endpoint:

LICENSE_API_URL=https://api.yoursite.com/verify
LICENSE_STEP_POSITION=2

That's it! The license verification step will appear in your installer.

You can find the full installation instructions in our documentation.

Usage

The package handles everything automatically. Users enter their license key and email, and the package:

  1. Calls your API with the license data
  2. Validates the response
  3. Stores license in session
  4. After installation, saves to licenses table

Development Mode

Skip verification during development:

LICENSE_SKIP_VERIFICATION=true

Never enable in production.

Customization

Publish the configuration file:

php artisan vendor:publish --tag=laravel-installer-license-config

Publish views to customize the UI:

php artisan vendor:publish --tag=laravel-installer-license-views

Publish translations:

php artisan vendor:publish --tag=laravel-installer-license-translations

Learn more about customization in the documentation.

Changelog

Please see the main CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-13