Download the PHP package namshi/google-doc-configuration-bundle without Composer

On this page you can find all versions of the php package namshi/google-doc-configuration-bundle. 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 google-doc-configuration-bundle

GoogleDocConfigurationBundle

Configure your Symfony2 container from a Google Doc. Sounds crazy but it's even worse.

This bundle will let you use a Google Doc to store key-value pairs and re-use them within your Symfony2 app: this means that any human capable with interacting with a spreadsheet can play around and configure your app.

The values are "public", in the sense that you will need to share the Google Doc ("Publish to the web") so anyone with the link can access it, even though guessing the URL of the doc isn't trivial.

In any case, you should use this tecnique to store things like

and so on and so fort. Do not store passwords or sensitive data there.

Installation

You can easily install this library through composer:

Configuration

Simply define the config service, here we are using Redis and gvalue to store config values from Google Docs to Redis and read the cached values from a redis hash for performances:

The Google Doc key can be found from the URL of your Google Doc, which is something like https://docs.google.com/a/namshi.com/spreadsheet/ccc?key=123456&usp=drive_web#gid=0, where 123456 is the key of the document.

To check the format of the doc have a look at the example one.

Then secure the 2 routes that the bundle exposes, in the security.yml:

You can then check http://domain.example/namshi/config to check your configuration and http://domain.example/namshi/update-config to update it from the Google Doc.

Storing the config in different ways

We use Redis but you are free to implement the ConfigInterface and have fun with it.

Transforming values

If you need to process / transform values out of the Google Do, ie. transforming "false" to false you can simply define a namshi_google_doc_configuration.transformer service and let it implement the TransformerInterface.

This is probably not so clean but you can live with it, for now :)

Tests

b****-please


All versions of google-doc-configuration-bundle with dependencies

PHP Build Version
Package Version
Requires namshi/gvalue 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 namshi/google-doc-configuration-bundle contains the following files

Loading the files please wait ....