定制 refbytes/laravel-outseta 二次开发

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

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

refbytes/laravel-outseta

最新稳定版本:v1.3.2

Composer 安装命令:

composer require refbytes/laravel-outseta

包简介

Integrate Outseta registration, login, and internal user creation with Laravel.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This Laravel package integrates Outseta registration, login, and internal user creation with Laravel. It also includes a webhook configuration for receiving Outseta events.

Intro to Outseta for Laravel

Note

If you don't already have an account, you can register for a an Outseta account. This is an affiliate link that helps me keep the lights on.

Usage

In order to use this package, you'll need to have an Outseta account. Once you account is created, you can follow these steps to get started. A full integration guide is provided in the wiki.

Outseta Account

Copy the subdomain portion of your Outseta URL to OUTSETA_SUBDOMAIN in your .env file. The subdomain can be copied from your browser's address bar. It can also be viewed and changed by going to Settings -> General -> Outseta URL.

Installation

You can install the package via composer:

composer require refbytes/laravel-outseta

The included migrations create an accounts table and adds an account_id column to your users table. If you need to customize the models used by this package you can specify them in the config file using .env keys.

You can publish and run the migrations with:

php artisan vendor:publish --tag="outseta-migrations"
php artisan migrate

In order to integrate the Outseta Authentication, you need to add the Quick Start script to the header of every page. You can do this be adding the included component to the <head> section of your layouts.

<x-outseta-quick-start-script />

There are a few configuration options that are required to be set up in your .env file and several optional settings depending on your app:

OUTSETA_SUBDOMAIN=
OUTSETA_PUBLIC_KEY=
OUTSETA_WEBHOOK_KEY= 

OUTSETA_REDIRECT_AFTER_LOGIN= # default is /dashboard
OUTSETA_REDIRECT_IF_NOT_SUBSCRIBED= # default is /

If you choose to, you can publish the config file with:

php artisan vendor:publish --tag="outseta-config"

Features

  • Registration
  • Authentication
  • Subscription Checking
  • Webhooks with Events
  • Update Addon Usage
  • Track Custom Activity

Testing

composer test

Changelog

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

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-07