nodes / nstack
This package is abandoned and no longer maintained.
No replacement package was suggested.
Easy usage for NStack with Laravel
1.1.2
2018-07-06 06:46 UTC
Requires
- guzzlehttp/guzzle: 6.x
- laravel/framework: 5.1.*||5.2.*||5.3.*||5.4.*||5.5.*
- nodes/core: ^1.0
Requires (Dev)
- orchestra/testbench: ~3.4
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-05-17 19:33:04 UTC
README
NStack integration for Laravel
📝 Introduction
📦 Installation
To install this package you will need:
- Laravel 5.1+
- PHP 7.0+
You must then modify your composer.json
file and run composer update
to include the latest version of the package in your project.
"require": {
"nodes/nstack": "1.0.*",
}
Or you can run the composer require command from your terminal.
composer require nodes/nstack
🔧 Setup
Setup service providers in config/app.php
Nodes\NStack\ServiceProvider::class,
Nodes\ServiceProvider::class,
Setup alias in config/app.php
'NStack' => Nodes\Backend\Support\Facades\NStack::class,
Publish config file
php artisan vendor:publish && php artisan vendor:publish --provider="Nodes\NStack\ServiceProvider" --force
Dump
composer dump-autoload
⚙ Usage
Global function
nstack()
$countries = nstack()->countries()
nstack()->pushLog('fcm', 'my-app', 'userNotification', true, ['request here'], ['response here'], 'Hi!', 1);
nstack()->fileUpload('private-password', $uploadedFile, str_random(8));
nstack()->validateEmail($email): bool
🏆 Credits
This package is developed and maintained by the PHP team at Nodes
📄 License
This package is open-sourced software licensed under the MIT license