Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

ml-archive/nodes-php-nstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

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