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

This package is auto-updated.

Last update: 2024-05-17 19:33:04 UTC


README

NStack integration for Laravel

Total downloads Monthly downloads Latest release Open issues License Star repository on GitHub Watch repository on GitHub Fork repository on GitHub

📝 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

Follow Nodes PHP on Twitter Tweet Nodes PHP

📄 License

This package is open-sourced software licensed under the MIT license