Download the PHP package toneflix-code/laravel-op without Composer

On this page you can find all versions of the php package toneflix-code/laravel-op. 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-op

Laravel OP

Test & Lint Latest Stable Version Total Downloads License PHP Version Require codecov

Laravel OP is a simple API agnostic fork of Laravel that provides a set of tools to help you build your Laravel application faster and easier. It is a collection of useful classes, traits, and functions that I have found useful in my own projects. It is a work in progress and I will be adding more features as I need them. I hope you find it useful too.

Usage

To use this package you have to initialize it as a project using composer:

What's Included

Laravel OP bundles a set of third-party packages and in-house subsystems chosen to cover the things almost every API backend ends up needing. Packages with their own documentation are linked out to rather than re-documented here.

Payments

Three interchangeable payment processors behind a single PaymentInterface (intent() / verify() / deauthorize() / transfer()), selected per-request via payWith($processor) on App\Traits\ControllerCanExtend:

Processor Backed by Notes
paystack toneflix/paystack-php This kit's own Paystack SDK, replacing the abandoned yabacon/paystack-php.
stripe stripe/stripe-php (official SDK) Replaces the abandoned cartalyst/stripe-laravel.
wallet toneflix/laravel-pay-pocket Internal balance-based payments, no external gateway. Deducts synchronously from the user's wallet(s); see Preparation in that package's README for wallet types (App\Enums\WalletEnums) and priority order.

Every attempt is recorded in the Transaction model (App\Models\Transaction), including a polymorphic transactable link back to whatever the payment was for.

Notifications

Settings

toneflix/laravel-dbconfig is the backbone of runtime configuration: most settings a deployer would expect in .env (currency, token lifespans, reference prefixes, preferred SMS channel, feature toggles) are instead rows in the database, editable live through the admin configurations endpoint. .env is only the fallback for a handful of secrets.

File uploads

toneflix/laravel-fileable powers avatar uploads and named upload "collections" (banners, logos, private files/images/videos), responsive image variants, and secure/dynamic file-serving routes. Configured per-collection in config/toneflix-fileable.php.

API responses & resources

toneflix/laravel-resource-modifier standardizes the shape of every JSON Resource response (pagination meta/links keys, optional camelCase) and ships a make:resource command this kit re-exposes under its own namespace. Every controller returns through a small set of response macros (response()->success()/error()/info(), see App\Helpers\Provider) for a consistent {status, status_code, message, data} envelope.

Admin & permissions

spatie/laravel-permission backs the whole authorization layer. Roles and permissions are declared in config/permission-defs.php; one Laravel Gate is registered per permission (App\Helpers\Access), with an enable_admin_permission_middleware setting to turn the whole thing off for local dev. php artisan app:sync-roles seeds roles/permissions onto users.

Exports

Any model registered in config/exports.php can be exported to .xlsx via maatwebsite/excel, synchronously, or queued with an email notification linking to a time-limited signed download (php artisan app:export, or the generic SimpleDataExporter service).

Sessions & devices

API auth is token-based via laravel/sanctum, with each token named by the device's user-agent string. matomo/device-detector turns that into a human-readable label for the "my devices" list (GET /account/devices), so a user can see and revoke sessions by device.

Dev tooling


All versions of laravel-op with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel-notification-channels/twilio Version ^4.2
laravel/framework Version ^13.0
laravel/sanctum Version ^4.3
laravel/tinker Version ^3.0
maatwebsite/excel Version ^4.0
matomo/device-detector Version ^6.4
predis/predis Version ^2.3
spatie/laravel-permission Version ^6.16
stripe/stripe-php Version ^22.0
toneflix/kudisms-notification Version ^2.0
toneflix/laravel-dbconfig Version ^2.0
toneflix/laravel-fileable Version ^3.0
toneflix/laravel-pay-pocket Version ^4.0
toneflix/laravel-resource-modifier Version ^2.0
toneflix/paystack-php Version ^1.0
valorin/random Version ^1.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 toneflix-code/laravel-op contains the following files

Loading the files please wait ...