承接 volkenomakers/google-places-reviews 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

volkenomakers/google-places-reviews

Composer 安装命令:

composer require volkenomakers/google-places-reviews

包简介

Show Google Places Reviews in Laravel project

README 文档

README

VolkenoMakers-GPR is a laravel package for managing the display of Google Places Reviews. It is simplistic, easy to use and designed to fill the lack of reliable documentation and resources needed to display the reviews of your business.

Demo

You can see the package demo here

Installation

You can install the package via composer :

composer require volkenomakers/google-places-reviews

If installation is done, you must add the package Provider in config/app.php on providers array :

    'providers' => [
        ...
        ...
        ...

        /*
         * Package Service Providers...
         */
        VolkenoMakers\GooglePlacesReviews\GooglePlacesReviewsServiceProvider::class,

        ...
        ...
        ...
    ],

After installation, you must publish vendor :

php artisan vendor:publish --provider="VolkenoMakers\GooglePlacesReviews\GooglePlacesReviewsServiceProvider"

Updating config file

To configure the package, you must edit the config/google-places-reviews.php file to fill in the essential information.

<?php
    /*
        Configuration.
        Note: You'll need a Google maps API key - requires both Maps JS and Places API services enabled.
    */

return [
    'place_ID'          => '', // [REQUIRED] Get from: https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder 
    'business_type'     => '', // [REQUIRED] Example: FinancialService (http://schema.org) 
    'business_name'     => '', // [REQUIRED] Your Business name 
    'street_address'    => '', // Your business address
    'locality'          => '', // Example: Docklands (http://schema.org/addressLocality)
    'region '           => '', // Your business region
    'post_code'          => '', // Your business post code
    'logo_path'         => '', // Your business logo lurl
    'min_star'          => '1', // The minimum star rating (min = 1)
    'max_rows'          => '5', // The maximum number of results (max = 5)
    'api_key'           => '', // [REQUIRED] Google API Key
];

Override package css style

You can override the package styling by adding your custom CSS in the public/vendor/gp-reviews.css file. If you also want to add new class or id to go further on the customization you must edit the view file integrated in resources/views/vendor/gp-reviews.blade.php

Multilingual configuration (i18n)

The package is multilingual with two languages configured by default : English and French. On the other hand, you can always add other languages by creating a folder of the language you want to use in resources/lang/vendor/gp-reviews, taking the keys and assigning them a textual value.

IMPORTANT TO KNOW :
You cannot configure the internationalization of the names of the months of the year in the lang folder. For this, you must edit the resources/views/vendor/gp-reviews.blade.php file on line 154. By default the months are in French.

var convertTime = function(UNIX_timestamp) {
    var a = new Date(UNIX_timestamp * 1000);
    var months = ['Janv','Fév','Mar','Avr','Mai','Juin','Juil','Août','Sept','Oct','Nov','Déc']; // You can change this
    var time = a.getDate() + ' ' + months[a.getMonth()] + ' ' + a.getFullYear();
    return time;
}

How to user VolkenoMakers-GPR

You must include the resources/views/vendor/gp-reviews/gp-reviews.blade.php file in the view where you want to place it.

    @section('content)
        ...
        ...
        ...
        <div>
            @include('vendor.gp-reviews.gp-reviews')
            @stack('scripts')
        </div>
    @endsection

And in your master template, you must add push helper with script like the value

@push('scripts')

Finally, you must add the package css link in your master template head tag like this :

<link rel="stylesheet" href="{{ asset('vendor/gp-reviews/gp-reviews.css') }}">

Copyright and License

google-places-reviews was written by Sadio Sangharé for Volkeno Makers and is released under the MIT License.

Copyright (c) 2023 VolkenoMakers

volkenomakers/google-places-reviews 适用场景与选型建议

volkenomakers/google-places-reviews 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 45 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 02 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 volkenomakers/google-places-reviews 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 volkenomakers/google-places-reviews 我们能提供哪些服务?
定制开发 / 二次开发

基于 volkenomakers/google-places-reviews 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 4
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-17