Download the PHP package monkeyscloud/monkeyslegion-stripe without Composer

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

MonkeysLegion Stripe Integration

PHP Version

First-class Stripe integration package for the MonkeysLegion PHP framework, providing PSR-compliant HTTP clients and service container integration.

📋 What You'll Learn

This documentation covers everything you need to integrate Stripe payments into your MonkeysLegion application:

Documentation

All usage, configuration, and API references can be found in the official Monkeys Legion Stripe package documentation.

🚀 Quick Start

Features

Requirements

Environment Awareness

The package supports environment-specific configurations using .env.<stage> files. By default, the dev environment is used. You can specify the environment using the --stage flag.

Example

The .env.<stage> file will be used based on the specified stage.

Installation

Install the package via Composer:

Configuration

Publish Configuration File

Publish the configuration file to your project:

Environment Variables

Configure your Stripe settings using the following environment variables:

Note: The key-helper utility validates only the essential Stripe keys. Additional configuration variables can be added manually to your .env files as needed.

Configuration Structure

The configuration file supports the following options:

Key Management

The package includes a comprehensive key management utility for generating, validating, and managing Stripe API keys and webhook secrets. All operations are performed through the command line interface.

Key-Helper Features

Command Reference

Environment-Specific Key Management

The --stage flag allows you to manage keys for specific environments (dev, prod, test).

Example

The .env.<stage> file will be updated or validated based on the specified stage.

Default behavior without stage flag: Uses .env.dev file

Generate New Keys

Generate Default Secret Key

Generate Specific Key Types

Rotate Keys

Rotate Security Keys

Environment-Specific Rotation

Set Keys

Set Individual Keys

Interactive Setup Mode

Validate Keys

Validate All Keys

Validate Specific Keys

Validate Keys for a Specific Environment

Advanced Key Management

Show Current Key Values

List All Configuration Keys

Webhook Secret Testing

Key Validation Features

The key-helper validates different types of keys with specific format requirements:

Supported Validation Types

Error Handling

Environment File Management

The key-helper safely manages environment files with these features:

File Safety

Multi-Environment Support

Key Generation Security

Service Registration

Registration

(In Your app.php)

register the service provider by: Install DI package via Composer:

bash

Set your webhook secret from Stripe Dashboard

php vendor/bin/key-helper set STRIPE_WEBHOOK_SECRET whsec_your_secret_here

Verify it's configured correctly

php vendor/bin/key-helper webhook:test env

Set your environment in .env file

APP_ENV=dev # Uses InMemoryStore APP_ENV=test # Uses SQLiteStore
APP_ENV=prod # Uses MySQLStore (requires database configuration) sql CREATE TABLE idempotency_store ( id INT AUTO_INCREMENT PRIMARY KEY, event_id VARCHAR(255) UNIQUE NOT NULL, processed_at DATETIME NOT NULL, expiry DATETIME NULL, data JSON NULL, INDEX idx_event_id (event_id), INDEX idx_expiry (expiry) ); env

Webhook processing configuration

STRIPE_TIMEOUT=60 # Timeout for webhook processing (seconds) STRIPE_WEBHOOK_RETRIES=3 # Maximum retry attempts (production only) STRIPE_WEBHOOK_TOLERANCE=20 # Signature timestamp tolerance (seconds) STRIPE_WEBHOOK_DEFAULT_TTL=172800 # Event storage TTL (48 hours in seconds) env

Configure webhook payload size limit

STRIPE_MAX_PAYLOAD_SIZE=131072 # 128KB (default) STRIPE_MAX_PAYLOAD_SIZE=262144 # 256KB (custom)



The payload validation includes:
- Size limit checking
- JSON format validation  
- Empty payload detection
- Detailed error logging for debugging

All versions of monkeyslegion-stripe with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
guzzlehttp/psr7 Version ^2.7
monkeyscloud/monkeyslegion-cli Version ^1.0
monkeyscloud/monkeyslegion-core Version ^1.0
monkeyscloud/monkeyslegion-http-client Version ^1.0
monkeyscloud/monkeyslegion-query Version ^1.0
psr/http-client Version ^1.0
stripe/stripe-php Version ^17.3
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 monkeyscloud/monkeyslegion-stripe contains the following files

Loading the files please wait ...