cedricziel / lumen-appengine-mvm by cedricziel

A Laravel Lumen distribution with modifications for Google AppEngines Managed VMs. Applied in a single transparent commit.
12
1
3
Package Data
Maintainer Username: cedricziel
Package Create Date: 2015-12-06
Package Last Update: 2015-12-06
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 03:17:17
Package Statistics
Total Downloads: 12
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

Lumen PHP Framework (Fitted for Google AppEngine Managed VMs)

Prerequisites

  • gcloud command available (install the Google Cloud SDK
  • gcloud authentication (gcloud auth)
  • a project in one of the Managed VMs enabled Google Cloud Platform Zones (at the time of writing, those are all in the us)
  • git, composer, php, python2, python2-crcmod
  • docker & docker-compose if you need a database locally via docker-compose

Preparation

  • composer install
  • modify app.yaml to your needs (the default module is exposed at the root of your AppEngine, you can have multiple modules)

Preview

You may start a mysql instance bound to 127.0.0.1/localhost with docker-compose up

python2 $HOME/google-cloud-sdk/bin/dev_appserver.py \
    --custom_entrypoint="php artisan serve \
    --port {port}" \
    app.yaml
    
# or

./preview.sh

Deploy

# "--promote" determines if this should be exposed at your AppEngine Module root
# "--version" determines how the docker builder VM on Compute Engine will be named (important if
#             you want to deploy more than one module at time, and the module Version name
gcloud preview app deploy --version default-001 --promote app.yaml

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Official Documentation

Documentation for the framework can be found on the Lumen website.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Lumen framework is open-sourced software licensed under the MIT license