2017 © Pedro Peláez
 

library evorg

Scalable Events Database for Laravel and ElasticSearch

image

buonzz/evorg

Scalable Events Database for Laravel and ElasticSearch

  • Saturday, September 9, 2017
  • by buonzz
  • Repository
  • 0 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Evorg

Scalable Events Database for Laravel, (*1)

Requirements

  • PHP >= 5.5.0
  • ElasticSearch Servers

Installation

require in composer.json, (*2)

"buonzz/evorg": "2.*"

update composer by executing this in your project base folder, (*3)

composer update

add the service provider in config/app.php in providers array, (*4)

'Buonzz\Evorg\ServiceProvider',

add the alias in config/app.php in aliases array, (*5)

        'Evorg'   => Buonzz\Evorg\EvorgFacade::class

publish the config settings, (*6)

php artisan vendor:publish

edit config/evorg.php, (*7)

  • app_id - is a unique number to identify your app
  • app_name - is the unique name of your app
  • logging - setting this to true makes a log file for evorg in app/storage/logs/evorg.log , good for troubleshooting
  • hosts - address of the elasticsearch servers (see http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html)

create the schemas in ElasticSearch, (*8)

php artisan evorg:create_schema

NOTE: The application assumes that the Laravel Task scheduling cron entry is added in your crontab, (*9)

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

if not, kindly do so, as its needed to perform background tasks that the package needs to do, (*10)

Usage

Insert a click for a particular thumbnail, (*11)

Route::get('click', function()
{
    return Evorg::event("click")
                   ->insert('thumbnail', array(
                        'movie_name' => 'Interstellar',
                          'year' => '2014')
                );
});

Retrieve all click events, (*12)

Route::get('all', function()
{
    return Evorg::event("click")->get();
});

The Versions

09/09 2017

dev-master

9999999-dev

Scalable Events Database for Laravel and ElasticSearch

  Sources   Download

The Requires

 

by Darwin Biler

06/11 2016

dev-l5

dev-l5

Scalable Events Database for Laravel and ElasticSearch

  Sources   Download

The Requires

 

by Darwin Biler

07/12 2014

v1.0.0

1.0.0.0

Scalable Events Database for Laravel

  Sources   Download

The Requires

 

by Darwin Biler