Download the PHP package mijohansen/php-gae-util without Composer

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

php-gae-util

Utility belt for common tasks and patterns on Google App Engine for PHP. The goal is to make development of microservices on Google App Engine go fast and smooth. Handling common GAE scenarios with less code.

Modules

Login in to provide service account credentials in development

For local developent its important to get Application Default Credentials if you want to use resources on the Google Cloud platform. You log in by running this command:

You need to restart the devserver to get this working as the credentials get set on startup time.

Testing and development

Testing

Test-coverage is an important part of creating reusable, reliable code. The goal of this testing is to use phpunit as this is the most used PHP test framework. As several methods are dependent on Cloud Datastore installing understanding and being able to test against the emulator is quite important. The emulator is not the same as the built in emulator that is running inside the GAE devserver emulator.

Cloud datastore setup for testing

or alternatively with docker:

For local development of packages

My strategy for developing packages for packagist is as following.

In ~/composer/config.json add, this also works with using the projects composer.json file, but then you might get problems on other developers computers and in pipelines.

This will now create a link. Two tricks for getting a more problem free start of development is to add your liberary with "*" for and set minimum stability in the local composer.json for the liberary that requires your packages:

Coding style

The liberary consist of several separate Classes that really just form a set of functions which should be fairly simple to introduce to code. From version 0.7.0 every static method and function is written in camelCase. And I try to follow PSR-1 and PSR-2

Contributing


All versions of php-gae-util with dependencies

PHP Build Version
Package Version
Requires google/apiclient Version v2.*
google/appengine-php-sdk Version v1.*
google/cloud-storage Version v1.*
hassankhan/config Version v1.*
monolog/monolog Version v1.*
doctrine/instantiator Version 1.0.5
php Version >=5.5
tomwalder/php-gds Version v4.*
ext-openssl Version *
ext-json Version *
fig/link-util Version ^1.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 mijohansen/php-gae-util contains the following files

Loading the files please wait ....