Download the PHP
package randomstate/stripe without Composer
On this page you can find all versions of the php package
randomstate/stripe. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor randomstate Package stripe Short Description A stripe wrapper for seriously easy testing License
MIT
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.
A stripe (PHP) wrapper for seriously easy testing. Brought to you with ❤️ from Random State.
This package is still being tested in real-life. I'm confident that it does what it says it does but there may still be a number of paths in the code that don't exactly fake over the stripe API.
Installation
composer require randomstate/stripe
Laravel
Create a Service Provider object - e.g. php artisan make:provider BillingServiceProvider
Add it into your app.php providers array
Bind your billing provider
For Stripe:
For testing, you can bind the BillingProvider contract to \RandomState\Stripe\Fake::class and use it
as if you were interacting with stripe.
Usage
Each provider conforms to the BillingProvider contract but essentially follows the natural way that the stripe API
works.
E.g.
Testing Helpers
This package comes out of the box with the following helpful features:
starting_after, ending_before and limit support during all queries
Webhook spoofing using event data. In Laravel you might do something like this to fake webhook calls:
License
MIT. Use at your own risk, we accept no liability for how this code is used.
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 randomstate/stripe contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.