Download the PHP package snowfire/snowfire-app without Composer

On this page you can find all versions of the php package snowfire/snowfire-app. 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 snowfire-app

Snowfire App

This packages makes it possible to connect your Laravel app to Snowfire.

Install the package

Add this to your composer.json

"snowfire/snowfire-app": "dev-master"

Add this to your service providers in config/app.php

'Snowfire\App\SnowfireServiceProvider'

Add this to your route middlewares in app/Http/Kernel.php

'snowfire' => 'Snowfire\App\Middleware\SnowfireMiddleware',
'snowfireAdmin' => 'Snowfire\App\Middleware\SnowfireAdminMiddleware',

Publish the config file

$ php artisan vendor:publish

Create the database table for snowfire installations

$ php artisan migrate

Seed data

Add this to your DatabaseSeeder.php

$this->call('\Snowfire\App\Storage\Seeder');

CSRF protection

If you have CSRF middleware activated in app/Http/Kernel.php open app/Http/Middleware/VerifyCsrfToken.php and add the following to the handle method:

Integration possibilities

There are two different ways to connect your app to Snowfire. As a link in the admin area and as a public action.

Example

Lets say you have a list of events. A public action will be something like http://your-app.com/events/all which will render an HTML <ul> list. Then you will have an admin link from Snowfire to http://your-app.com/admin which will let users add/edit/remove events.

Start by adding your actions to config/snowfire_app.php

This config adds the admin link as a named route called snowfire.tab and a route for all events. Both tab and actions are optional (but you need one of them, right?)

Your routes.php

This creates an admin route and the public action. The admin route is behind a snowfireAppAuth filter which makes sure the user is logged in and trusted.

Your Snowfire snippet to the public event list

Login to Snowfire and install the app (System -> Apps)

http://your-hosted-app.com/snowfire/install

Create a new snippet with this code:

Warning: Adding applications to the root / (i.e the home page) is currently not supported. Please create a sub page to add your app.

Now just add the snippet to a page and it will show you a list of events.

Links

When you are working in an action that will be rendered within Snowfire, you need to use:

This will make sure the links works from within Snowfire.


All versions of snowfire-app with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version ~5.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 snowfire/snowfire-app contains the following files

Loading the files please wait ....