Download the PHP package palpalani/bayrewards-laravel without Composer
On this page you can find all versions of the php package palpalani/bayrewards-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download palpalani/bayrewards-laravel
More information about palpalani/bayrewards-laravel
Files in palpalani/bayrewards-laravel
Package bayrewards-laravel
Short Description BayRewards PHP SDK for Laravel Framework - A comprehensive rewards platform integration for e-commerce stores.
License MIT
Homepage https://github.com/palpalani/bayrewards-laravel
Informations about the package bayrewards-laravel
BayRewards Laravel
BayRewards PHP SDK for Laravel Framework.
BayRewards revolutionizes e-commerce engagement with a comprehensive rewards platform. Seamlessly integrated with online stores, BayRewards offers point programs, referral incentives, and VIP perks to drive customer loyalty and sales. Elevate your e-commerce experience by incentivizing purchases, encouraging referrals, and rewarding VIP customers with exclusive benefits. With BayRewards, businesses can effortlessly cultivate customer relationships and foster brand advocacy, leading to increased retention and revenue.
Table of Contents
- Requirements
- Installation
- Configuration
- Usage
- Using the Facade
- Using Dependency Injection
- Get Store Details
- Get Store Features
- Create Activity
- Get Activity
- Update Activity
- Update Loyalty Points
- Get Store Customers
- Testing
- Changelog
- Contributing
- Security Vulnerabilities
- Credits
- License
Requirements
- PHP >= 8.2
- Laravel >= 10.0 | >= 11.0 | >= 12.0
Installation
You can install the package via Composer:
The package will automatically register its service provider and facade.
Configuration
Publish the configuration file:
This will create a config/bayrewards-laravel.php file in your config directory.
Environment Variables
Add the following to your .env file:
Replace the URL with your actual BayRewards API base URL.
Usage
Using the Facade
The package provides a BayRewards facade for easy access:
Using Dependency Injection
You can also use dependency injection:
Get Store Details
Retrieve store details after integrating with BayRewards.io:
Get Store Features
Get available features for a store:
Create Activity
Create a new BayRewards activity:
Get Activity
Retrieve activity details:
Update Activity
Update an existing activity:
Update Loyalty Points
Update loyalty points for a customer:
Get Store Customers
Retrieve all customers for a store with optional pagination and filtering:
Testing
Run the tests with:
For test coverage:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- palPalani
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of bayrewards-laravel with dependencies
spatie/laravel-package-tools Version ^1.92.7
illuminate/contracts Version ^11.0|^12.0
saloonphp/saloon Version ^3.14