explicitdev/laravel-onboarding
最新稳定版本:v1.0.1
Composer 安装命令:
composer require explicitdev/laravel-onboarding
包简介
Define Laravel onboarding flows as code and track progress without scattered booleans.
README 文档
README
Define onboarding flows as code. Track progress without scattered booleans.
Every Laravel product eventually grows a handful of profile_completed, invited_team, and seen_dashboard booleans. Laravel Onboarding turns that scattered state into versioned flow classes, persisted progress, lifecycle events, and UI helpers you can reason about.
composer require explicitdev/laravel-onboarding
php artisan vendor:publish --tag=onboarding-config
php artisan migrate
namespace App\Onboarding;
use App\Models\User;
use ExplicitDev\Onboarding\Flows\OnboardingFlow;
use ExplicitDev\Onboarding\Steps\Step;
class NewUserFlow extends OnboardingFlow
{
public function name(): string
{
return 'new-user';
}
public function subject(): string
{
return User::class;
}
public function steps(): array
{
return [
Step::make('complete_profile')
->title('Complete your profile')
->completedWhen(fn (User $user): bool => filled($user->name)),
Step::make('invite_teammate')
->title('Invite a teammate')
->completedWhen(fn (User $user): bool => $user->teammates()->exists())
->skippable(),
];
}
}
use App\Onboarding\NewUserFlow;
use ExplicitDev\Onboarding\Facades\Onboarding;
Onboarding::register(NewUserFlow::class);
$progress = Onboarding::for($user)->flow('new-user');
$progress->percentage();
$progress->nextStep();
Features
- Flows live in version control as PHP classes
- Multiple concurrent flows per user, team, or any Eloquent model
- Skippable and required steps with lifecycle hooks
- Persisted or live evaluation per flow
- Shared dashboard data service and admin dashboard presets
- Cached progress snapshots with mutation-aware invalidation
- Blade directives and basic, publishable Blade components
- Artisan tooling for operations and debugging
- MIT licensed
The free package intentionally keeps UI primitives simple: teams can use the headless progress API, publish the basic Blade views, and style the experience themselves. Polished dashboards, Filament/Nova panels, analytics, templates, and deeper integrations are good candidates for paid add-ons.
Works With Laravel A/B Testing
Laravel Onboarding pairs well with
explicitdev/laravel-ab-testing
when a team wants to experiment on onboarding copy, step framing, or shared
workspace activation flows without making the experiment package the source of
truth for progress.
The A/B Testing package includes a dedicated onboarding integration guide:
For the broader Explicit Development package catalog, visit explicitdev.com/packages.
Commercial Add-Ons
The commercial add-on package family now exists as separate repos and has been validated internally through dogfood apps, GitLab tag pipelines, R2 release uploads, and the Explicit Development package registry:
explicitdev/laravel-onboarding-filamentfor Filament admin dashboards and progress managementexplicitdev/laravel-onboarding-uifor polished customer-facing Blade and Tailwind-friendly onboarding screensexplicitdev/laravel-onboarding-novafor Nova teamsexplicitdev/laravel-onboarding-backpackfor Backpack teamsexplicitdev/laravel-onboarding-blade-adminfor lightweight Blade/Livewire admin screens
All paid onboarding add-ons read the same shared family key from the core package config:
ONBOARDING_LICENSE_KEY=your-license-key
The core package includes the shared dashboard data service and preset model used by those admin adapters. Read Admin dashboards and reports for the core API, config settings, section names, and paid-package customization hooks.
They are active and available for purchase through Explicit Development at explicitdev.com/packages. The Laravel Onboarding product page is explicitdev.com/packages/laravel-onboarding.
Documentation
Start with the documentation index:
- Installation
- Configuration
- Defining flows
- Defining steps
- Querying progress
- Testing with the package
- Admin dashboards and reports
- Commercial add-ons
Public docs for the full package family, including the paid add-ons, are
mirrored in explicitdev/laravel-onboarding-docs.
Support
Open bugs, install questions, documentation gaps, and feature requests in:
explicitdev/laravel-onboarding-support- https://gitlab.com/explicitdev/laravel-onboarding-support
See SUPPORT.md for the preferred support workflow and the details that make triage faster.
Testing The Package
composer test
composer analyse
composer format
Contributing
Please read CONTRIBUTING.md before opening a support issue or a forked merge request.
Security
Please review SECURITY.md for supported versions and vulnerability reporting.
Code Of Conduct
Please review CODE_OF_CONDUCT.md before participating in project discussions or contributions.
Credits
- Explicit Development
- Inspired by earlier Laravel onboarding packages, especially
calebporzio/onboardandspatie/laravel-onboard
License
Laravel Onboarding is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-07