Package Data | |
---|---|
Maintainer Username: | airain |
Maintainer Contact: | github@mechastorm.com (Shih Oon Liong) |
Package Create Date: | 2015-05-08 |
Package Last Update: | 2015-05-15 |
Home Page: | |
Language: | PHP |
License: | Apache-2.0 |
Last Refreshed: | 2024-11-22 03:05:41 |
Package Statistics | |
---|---|
Total Downloads: | 14 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A Laravel (4.1 and above) package in an artisan command, which generates Laravel Languages files from a Google Spreadsheet.
It will
This library serves to simply interface with the Laravel framework. The bulk of the actual work is being done by key dependecies.
The aim is to
Further background can be found under the Google Spreadsheet Exporter. Especially read up on setting up your Google API client credentials.
Installation is primary via composer.
Create a composer.json file in your project and add the following:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/asimlqt/php-google-spreadsheet-client"
},
{
"type": "vcs",
"url": "https://github.com/mechastorm/google-spreadsheet-exporter"
}
],
"require": {
"mechastorm/laravel-lang-google-spreadsheet-importer": "1.*"
}
}
Once you have the package installed you'll need to add it to your providers in app/config/app.php
Example
'providers' => array(
'Mechastorm\LaravelLangGoogleSpreadsheetImporter\LaravelLangGoogleSpreadsheetImporterServiceProvider',
),
Then confirm the artisan command exist by running php artisan list
and check if there is a command for google-spreadsheet:generate-lang
in the output.
It's recommended that you publish the packages configuration.
php artisan config:publish mechastorm/laravel-lang-google-spreadsheet-importer
You should open app/config/packages/mechastorm/laravel-lang-google-spreadsheet-importer/config.php and add in details on your spreadsheet and google api access. For details on what/how to add these configs, go to this main readme for more info especially on getting Google API credentials.
It is strong recommended to do separate configurations per environment.
Assuming you have already installed and configured it correctly, you can just run the artisan command to generate the language files
php artisan google-spreadsheet:generate-lang
or with enviroment
php artisan google-spreadsheet:generate-lang --env={env_name}
Coming Soon!
Released under the Apache 2.0 license.