Download the PHP package xmlsquad/capture-lookups without Composer

On this page you can find all versions of the php package xmlsquad/capture-lookups. 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 capture-lookups

capture-lookups

A Symfony Console command. Searches for configuration file that lists URLs of Google Sheets, grabs the Sheets and stores their data locally as CSV files.

Designed be used in the context of the Symfony Console application at https://github.com/xmlsquad/xml-authoring-tools which, in turn, is used in the context of a known directory structure which is based on xml-authoring-project.

Usage instructions

Specifying the Lookup tables to collect

We assume this command is run in the context of an xml-authoring-project. ie. the key aspects of the structure of the directory is known.

Use the mapping.yaml configuration file which defines the locations of the Google Sheets we must collect.

Example mapping.yaml

Using the command

  1. Checkout the repository
  2. Install dependencies with composer install
  3. Put a gApiServiceAccountCredentials.json file in the project root or anywhere in any of the parent directories accessible to PHP
  4. Issue bin/capture-lookups to see all available mappings
  5. Issue bin/capture-lookups --sheet=LookupTableA to run the command interactively
  6. Issue bin/capture-lookups --sheet=LookupTableA --no-interaction to run the command without any prompts, skipping risky file names or existing files
  7. Issue bin/capture-lookups --sheet=LookupTableA --no-interaction --force to run the command without any prompts, overwriting existing files and using sanitised file names

Unit testing

  1. Install dependencies
  2. Run ./vendor/bin/phpunit

Skipped Tabs - Naming convention

By Google Sheet tab I mean one of the sheets within a workbook.

Any Google Sheet tab which has a trailing underscore will be considered to be skipped.

Connecting to GSuite

The file that Google Api uses to authenticate access to GSuite should be in the root of the xml-authoring-project.

The ping-drive project explains how to get set up to connect to GSuite.

Run the command

When the command is run, it will:

TODO


All versions of capture-lookups with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
symfony/console Version ^3.4
symfony/filesystem Version ^3.4
symfony/yaml Version ^3.4
google/apiclient Version ^2.0
xmlsquad/xml-authoring-library Version 0.3.3
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 xmlsquad/capture-lookups contains the following files

Loading the files please wait ....