Download the PHP package err0r/larasub without Composer

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

Laravel Subscription Package (Larasub)

Latest Version on Packagist Total Downloads

[!IMPORTANT]
This package is currently under development and is not yet ready for production use.
Click the Watch button to stay updated and be notified when the package is ready for deployment!

A powerful and flexible subscription management system for Laravel applications with comprehensive plan versioning support.

✨ Features

Core Subscription Management

Advanced Feature System

Plan Versioning & Management

Developer Experience

Table of Contents

Installation

Install via Composer:

Publish configuration:

Run migrations:

Quick Start

1. Setup Your User Model

2. Create Features

3. Create Plans with Versioning

4. Subscribe Users

5. Check Features & Usage

Migration from v2.x to v3.x (Plan Versioning)

If upgrading from v2.x, follow these steps:

1. Backup Your Database

2. Update Package & Run Migration

3. Update Your Code

Before (v2.x):

After (v3.x):

See Changelog

Core Concepts

Plans vs Plan Versions

Feature Types

Subscription Lifecycle

  1. Pending: Created but not yet active (start_at is null)
  2. Active: Currently running subscription
  3. Cancelled: Marked for cancellation (can be immediate or at period end)
  4. Expired: Past the end date
  5. Future: Scheduled to start in the future

Subscription Management

Creating Subscriptions

Subscription Status

Subscription Operations

Querying Subscriptions

Feature Management

Checking Feature Access

Tracking Feature Usage

Feature Configuration

Feature Visibility

Control which features are displayed to end users while keeping them functional for internal logic:

API Behavior:

Feature Relationships

Plan Versioning

Creating Plan Versions

Working with Versions

Subscription Versioning

Events & Lifecycle

The package dispatches events for subscription lifecycle management:

Available Events

Event Listener Example

Automatic Event Checking

The package includes an automated scheduler that checks and triggers subscription events every minute. You can enable and configure this scheduler in your config/larasub.php file. The scheduler is disabled by default.

API Resources

Transform your models into JSON responses using the provided resource classes:

Configuration

Publish and customize the configuration file:

Key configuration options:

Commands

The package provides several Artisan commands:

Migration Command

Subscription Monitoring

Development Tools

Testing

Run the test suite:


All versions of larasub with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0||^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
spatie/laravel-translatable Version ^6.8
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 err0r/larasub contains the following files

Loading the files please wait ....