Download the PHP package emmanuelsaleem/laravel-stripe-manager without Composer

On this page you can find all versions of the php package emmanuelsaleem/laravel-stripe-manager. 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 laravel-stripe-manager

Laravel Stripe Manager

A comprehensive Laravel package for managing Stripe customers, products, subscriptions, and payments with a complete web interface.

πŸš€ Quick Start

Installation

  1. Install the package via Composer in your Laravel project:

Navigate to your Laravel application directory:

Then install the package:

For a specific version:

For the latest development version:

Important: The migration will automatically add a stripe_id column to your users table if it doesn't already exist. No additional User model setup is required!

  1. Install required dependencies:

  2. Publish and run migrations:

  3. Publish views (optional):

  4. Publish configuration:

Configuration

  1. Add Stripe credentials to your .env file:

🌐 Web Interface Access

Once installed, you can access the complete web interface at:

Main Dashboard

Available Routes

Authentication Required

All routes require authentication. Make sure users are logged in before accessing the interface.

πŸ“‹ Features

πŸ”Œ API (Optional)

The package exposes a minimal REST API for integrating your frontend or other services. The base path and middleware are configurable.

API Documentation

Explore and test the REST API using the Postman documentation:

Configure

In config/stripe-manager.php:

Base URL: {APP_URL}/{prefix} (default: /api/stripe-manager)

Endpoints

1) GET {prefix}/plans

Response

2) GET {prefix}/users/{userId}/subscription

Response

3) POST {prefix}/select-subscription-plan

Body

Response

Behavior

4) GET {prefix}/trial-info?user_id=123

5) DELETE {prefix}/cancel-subscription-plan

Body

6) GET {prefix}/user-payment-methods?user_id=123

7) POST {prefix}/save-stripe-id

Body

8) POST {prefix}/set-default-payment-method

Body

Notes

πŸ’» Programmatic Usage

Customer Service

Product Service

Subscription Service

πŸ”— Webhook Setup

  1. Configure webhook endpoint in Stripe Dashboard:

    • URL: https://yourdomain.com/stripe-manager/webhooks/handle
    • Events to send:
      • invoice.payment_succeeded
      • invoice.payment_failed
      • customer.subscription.created
      • customer.subscription.updated
      • customer.subscription.deleted
      • customer.subscription.trial_will_end
  2. The webhook automatically handles:
    • Payment success/failure tracking
    • Subscription status updates
    • Local database synchronization

πŸ—„οΈ Database Schema

The package creates the following tables:

Additional columns:

πŸ§ͺ Testing

🀝 Contributing

We welcome contributions! Here's how you can help:

Development Setup

  1. Fork the repository
  2. Clone your fork:

  3. Install dependencies:

  4. Create a feature branch:

  5. Make your changes and add tests

  6. Run tests:

  7. Commit your changes:

  8. Push to your fork:

  9. Create a Pull Request

Contribution Guidelines

πŸ“„ License

This package is open-sourced software licensed under the MIT license.

❓ FAQ

Is the HasStripeId Trait Required?

No, the trait is optional. The package works without it by checking the stripe_id property directly. However, adding the trait provides helpful methods:

Both approaches work identically. The trait is a convenience helper.

What if I don't have a stripe_id column?

Run the migration provided with the package:

This will add the stripe_id column to your users table automatically.

πŸ†˜ Support

For support, please:

βš™οΈ Advanced Configuration

Optional limits for Stripe API fetches (used by the testing panel):

These map to config/stripe-manager.php under stripe.limits.

πŸŽ› Usage Tips

πŸ“ Changelog

v1.0.0


All versions of laravel-stripe-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9.0|^10.0|^11.0
laravel/cashier Version ^13.0|^14.0|^15.0
stripe/stripe-php Version ^10.0|^11.0|^12.0|^13.0|^14.0|^15.0|^16.0
illuminate/support Version ^9.0|^10.0|^11.0
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 emmanuelsaleem/laravel-stripe-manager contains the following files

Loading the files please wait ...