2017 © Pedro Peláez
 

library gae-support

Google App Engine Support for Laravel apps.

image

shpasser/gae-support

Google App Engine Support for Laravel apps.

  • Monday, June 8, 2015
  • by shpasser
  • Repository
  • 5 Watchers
  • 15 Stars
  • 7,017 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

GaeSupport

Google App Engine(GAE) Support package for Laravel 4., (*1)

Currently supported features: - Generation of general configuration files, - Mail service provider, - Queue service provider., (*2)

For Laravel 5 see https://github.com/shpasser/GaeSupportL5.
For Lumen see https://github.com/shpasser/GaeSupportLumen., (*3)

Installation

Pull in the package via Composer., (*4)

"require": {
    "shpasser/gae-support": "~1.0"
}

Then include the service provider within app/config/app.php., (*5)

'providers' => [
    'Shpasser\GaeSupport\GaeSupportServiceProvider'
];

Usage

Generate the GAE related files / entries., (*6)

php artisan gae:setup --config your-app-id

The default GCS bucket is configured unless a custom bucket id is defined using the --bucket option., (*7)

php artisan gae:setup --config --bucket="your-bucket-id" your-app-id

Mail

The mail driver configuration file can be found at app/config/production/mail.php, it is one of many configuration files generated by the artisan command. There is no need in any kind of custom configuration. All the outgoing mail messages are sent with sender address of an administrator of the application, i.e. admin@your-app-id.appspotmail.com. The sender, to, cc, bcc, replyTo, subject, body and attachment parts of email message are supported., (*8)

Queues

The generated queue configuration file app/config/production/queue.php should contain:, (*9)

return array(

    'default' => 'gae',

    /*
    |--------------------------------------------------------------------------
    | GAE Queue Connection
    |--------------------------------------------------------------------------
    |
    */

    'connections' => array(

        'gae' => array(
            'driver'    => 'gae',
            'queue'     => 'default',
            'url'       => '/tasks',
            'encrypt'   => true,
        ),
    ),

);

The 'default' queue and encryption are used by default. In order to use the queue your app/routes.php file should contain the following route:, (*10)

Route::post('tasks', array('as' => 'tasks',
function()
{
    return Queue::marshal();
}));

This route will be used by the GAE queue to push the jobs. Please notice that the route and the GAE Queue Connection 'url' parameter point to the same URL. For more information on the matter please see http://laravel.com/docs/4.2/queues#push-queues., (*11)

Deploy

Download and install GAE SDK for PHP and deploy your app., (*12)

The Versions

08/06 2015

dev-master

9999999-dev

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ron Shpasser

20/12 2014

1.0.8

1.0.8.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ron Shpasser

07/12 2014

1.0.7

1.0.7.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ron Shpasser

07/12 2014

1.0.6

1.0.6.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ron Shpasser

04/12 2014

1.0.5

1.0.5.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

by Ron Shpasser

30/11 2014

1.0.4

1.0.4.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

by Ron Shpasser

29/11 2014

1.0.3

1.0.3.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

by Ron Shpasser

26/11 2014

1.0.2

1.0.2.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

by Ron Shpasser

24/11 2014

1.0.1

1.0.1.0

Google App Engine Support for Laravel apps.

  Sources   Download

MIT

The Requires

 

by Ron Shpasser

24/11 2014

1.0

1.0.0.0

  Sources   Download

The Requires

 

by Ron Shpasser