Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/generate-pagefeeds
https://github.com/megaads-vn/generate-pagefeeds
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/megaads-vn/generate-pagefeeds
- Owner: megaads-vn
- Created: 2018-10-08T06:29:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T03:18:18.000Z (3 months ago)
- Last Synced: 2024-12-07T01:33:45.103Z (about 1 month ago)
- Language: PHP
- Size: 3.61 MB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google page feeds generate automatically for Laravel
This package help generate google page feed automatic.#####Install
using require command to install this package:
```
composer require megaads/generate-pagefeeds
```After complete install package, Add to app config provider
```
Megaads\Generatepagefeeds\GeneratepagefeedsServiceProvider::class
```
and run command publish to publish package config file.```
php artisan vendor:publish --provider="Megaads\Generatepagefeeds\GeneratepagefeedsServiceProvider"
```
The package file name ``pagefeeds.php`` and see like that:```
return [
'spreadSheetId' => '',
'sheetName' => '',
'credentialFile' => 'credentials.json',
'multipleLocales' => false,
'locales' => [
'us' => [
"id" => "",
"run" => false
],
'uk' => [
"id" => "",
"run" => false
],
'ca' => [
"id" => "",
"run" => false
],
'fr' => [
"id" => "",
"run" => false
],
'vn' => [
"id" => "",
"run" => false
],
]
];
```
``spreadSheetId`` param is default google spreadsheet file. If your website is mulilanguages and if you want to
generate page feeds file base on each other languages, so change ``multipleLocales`` to ``true`` and set google
spreadsheet id for each locales.#####Run
After install and config complete. Just run this url to generate file google spreadsheet. Make sure all file spreadsheet
is shared.```
http://yourdomain/pagefeeds-generator
http://yourdomain/coupon-feeds-generator?spreadSheetId=abcxyz
http://yourdomain/deal-feeds-generator?spreadSheetId=abcxyz
```With generate pagefeeds for multiple locales. Run with URL:
```
http://yourdomain/locale/pagefeeds-generator-multiple
```
Example
http://yourdomain/fr/pagefeeds-generator-multipleThanks