Download the PHP package ksmz/nana-laravel without Composer
On this page you can find all versions of the php package ksmz/nana-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ksmz/nana-laravel
More information about ksmz/nana-laravel
Files in ksmz/nana-laravel
Package nana-laravel
Short Description Laravel package for ksmz/nana
License BSD-2-Clause
Informations about the package nana-laravel
nana-laravel
Laravel package for ksmz/nana. Documentation is still incomplete.
Install
composer require ksmz/nana-laravel
artisan vendor:publish --provider "ksmz\NanaLaravel\NanaServiceProvider"
Differences
This package provides a more appropriate integration with regards to manging the Sink.
Make sure you're bringing in the right facades/classes. The underlying package also provides a facade-like static proxy and basic sink support.
ksmz\Nana | ksmz\Nana-Laravel |
---|---|
Fetch | LaravelFetch |
Consume | LaravelConsume |
Sink | NanaManager (Typehintable, Registered in container) |
Nana | Facades/Nana (Actual facade, aliased to \Nana as well) |
Of course, if you have stuff registered in the sink through the config file (config/nana.php), you can't use Sink
since it doesn't belong to this package.
That being said, nothing is stopping you from using the base package. If you're making super simple requests, use ksmz\Nana\Nana.php
.
Features
- Sinks can be pre-configured in
config/
. - Save responses directly to your existing Laravel/Flysystem's storage drivers
Configuration
You should see a nana.php
in your configuration directory. These are where you should configure your sinks. They are functionally identical to the Sink found in the base package.
As said in the base package's Sink documentation, the Sink API + configuration is inspired by Laravel's filesystems.
Example Configuration
Examples
All versions of nana-laravel with dependencies
ksmz/nana Version ~0.1
illuminate/support Version ~6.0|~7.0
illuminate/config Version ~6.0|~7.0