PHPackages                             mtsung/joymap-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mtsung/joymap-core

ActiveLibrary

mtsung/joymap-core
==================

享樂地圖

1.3.1(1mo ago)1676MITPHPPHP &gt;=8.1

Since Nov 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/MTsung/joymap-core)[ Packagist](https://packagist.org/packages/mtsung/joymap-core)[ Docs](https://github.com/mtsung/joymap-core)[ RSS](/packages/mtsung-joymap-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (18)Versions (218)Used By (0)

Joymap
======

[](#joymap)

Installation
------------

[](#installation)

```
composer require mtsung/joymap-core
```

Config Prefix
-------------

[](#config-prefix)

```
config('joymap.xxxxxxxx');
```

Lang Prefix
-----------

[](#lang-prefix)

```
__('joymap::xxxxxxxx');
```

GCS Config
----------

[](#gcs-config)

`config/filesystems.php`

```
use League\Flysystem\GoogleCloudStorage\PortableVisibilityHandler;

return [
    'disks' => [
        'gcs' => [
            'driver' => 'gcs',
            'project_id' => env('GOOGLE_CLOUD_PROJECT_ID', ''),
            'key_file' => json_decode(@file_get_contents(base_path(env('GOOGLE_CLOUD_KEY_FILE', null))), true),
            'bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET', ''),
            'path_prefix' => env('GOOGLE_CLOUD_STORAGE_PATH_PREFIX', ''),
            'storage_api_uri' => env('GOOGLE_CLOUD_STORAGE_API_URI', null),
            'visibility' => PortableVisibilityHandler::NO_PREDEFINED_VISIBILITY,
            'throw' => true,
        ],
    ],
];
```

Image Compress Config
---------------------

[](#image-compress-config)

`config/image.php`

```
return [
    'driver' => 'imagick'
];
```

Exception Error Code To Http Status Code Config
-----------------------------------------------

[](#exception-error-code-to-http-status-code-config)

`config/code.php`

```

return [
    'http_status_code' =>[
        41000 => 422,
        41001 => 422,
        51000 => 500,
    ],
];
```

Exception Error Msg Send To LINE Notify
---------------------------------------

[](#exception-error-msg-send-to-line-notify)

`app/Exceptions/Handler.php`

```
    public function render($request, Throwable $e): Response
    {
        if ($this->shouldReport($e)) {
            $message = LineNotification::getMsgText($e);
            event(new SendErrorNotifyEvent($message));
        }

        return parent::render($request, $e);
    }
```

env Example
-----------

[](#env-example)

```
# 本機
APP_ENV=local
# 測試機
APP_ENV=testing
# 正式機
APP_ENV=production

PAY_CHANNEL=spgateway
# Hitrust 參數
HITRUST_URL='https://testtrustlink.hitrust.com.tw/TrustLink/TrxReqForJava'
# 白名單網域
HITRUST_REFERER_URL='https://member-test.twdd.tw'
HITRUST_RETURN_URL='https://webapi-test.joymap.tw/credit-card/return'
HITRUST_CALLBACK_URL='https://webapi-test.joymap.tw/credit-card/callback'

# 智付通/藍新
# 退刷
SPGATEWAY_CLOSE_URL='https://ccore.newebpay.com/API/CreditCard/Close'
# 取消授權
SPGATEWAY_CANCEL_URL='https://ccore.newebpay.com/API/CreditCard/Cancel'
# 授權
SPGATEWAY_CREDIT_CARD_URL='https://ccore.newebpay.com/API/CreditCard'
# 查詢訂單
SPGATEWAY_QUERY_URL='https://ccore.newebpay.com/API/QueryTradeInfo'
# 金流合作推廣商 平台費用扣款
SPGATEWAY_CHARGE_INSTRUCT_URL='https://ccore.newebpay.com/API/ChargeInstruct'
# PartnerID_
SPGATEWAY_STORE_PARTNER_ID='TWDD'
SPGATEWAY_MERCHANT_HASH_KEY=''
SPGATEWAY_MERCHANT_IV_KEY=''
SPGATEWAY_MERCHANT_PREFIX=''

SPGATEWAY_PAY_NOTIFY_URL=''
SPGATEWAY_PAY_RETURN_URL=''
SPGATEWAY_BIND_NOTIFY_URL=''
SPGATEWAY_BIND_RETURN_URL=''

# 建立商店相關參數
SPGATEWAY_STORE_AGREED_FEE=
SPGATEWAY_STORE_AGREED_DAY=
SPGATEWAY_CREATE_STORE_URL='https://ccore.newebpay.com/API/AddMerchant'
SPGATEWAY_CREATE_STORE_VERSION=1.2
# 修改商店相關參數
SPGATEWAY_UPDATE_STORE_URL='https://ccore.newebpay.com/API/AddMerchant/modify'
SPGATEWAY_UPDATE_STORE_VERSION=1.0

NOTIFICATION_CHANNEL=fcm_v1

# FCM 推播設定 (2024/06 棄用)
FCM_URL='https://fcm.googleapis.com/fcm/send'
FCM_KEY=

# FCM V1
GOOGLE_APPLICATION_CREDENTIALS=../storage/firebase_key.json
FCM_V1_URL='https://fcm.googleapis.com/v1/projects/joymap-android/messages:send'
FCM_V1_TOPIC_URL='https://iid.googleapis.com/iid/v1:batchAdd'

# GORUSH 推播設定
GORUSH_HOST='http://localhost'
GORUSH_PORT=9999
GORUSH_PATH='/api/push'
GORUSH_TOPIC_MEMBER=
GORUSH_TOPIC_STORE='com.ChyunYueh.JoyShop'

# Joymap API Url
API_URL='https://api-test.joymap.tw'
# Joymap WEBAPI Url
WEBAPI_URL='https://webapi-test.joymap.tw'
# Joymap WWW Url
WWW_URL='https://www-test.joymap.tw'
# Joymap Booking Url
ORDER_DOMAIN='https://web-test.joymap.tw'
# Joymap Google Dining Url
GOOGLE_DINING_URL='https://google-dining-test.joymap.tw'

# GCS
GOOGLE_CLOUD_PROJECT_ID=api-project-288918646937
GOOGLE_CLOUD_KEY_FILE=storage/gcs_key.json
GOOGLE_CLOUD_STORAGE_BUCKET=joymap-store
GOOGLE_CLOUD_STORAGE_PATH_PREFIX=
GOOGLE_CLOUD_STORAGE_API_URI='https://storage.googleapis.com/'

# Error 時是否發送到 LINE NOTIFY
SEND_ERROR_LOG_LINE=false
LINE_NOTIFY_TOKEN=

SEND_ERROR_LOG_DISCORD=false
DISCORD_NOTIFY_TOKEN=''
DISCORD_NOTIFY_CHANNEL_ID=''
DISCORD_NOTIFY_ROLE_ID=''

SMS_CHANNEL=infobip

INFOBIP_URL='https://39wzv.api.infobip.com/sms/2/text/advanced'
INFOBIP_KEY=
INFOBIP_FROM=JOYMAP

JCOIN_URL='https://jcoin-test.joymap.tw'
# joymap jcoin user
JCOIN_USER=''
JCOIN_PW=''
# twdd jcoin user
TWDD_JCOIN_USER=''
TWDD_JCOIN_PW=''

# 會員凍結天數
MEMBER_DELETE_DAYS=31

# 萬用手機驗證碼
SUPER_PHONE_CHECK_CODE='JM-112233'

# 手機驗證碼存活時間(分鐘)
PHONE_VERIFY_CODE_EXPIRED_MIN=10

# 超過 N 秒就記 Slow Log
SLOW_REQUEST_SECOND
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 86.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Recently: every ~17 days

Total

217

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff790f37768052825d4d45c14834218eedbf240a48f90f3e6933ba4a69b05c7b?d=identicon)[MTsung](/maintainers/MTsung)

---

Top Contributors

[![MTsung](https://avatars.githubusercontent.com/u/31063480?v=4)](https://github.com/MTsung "MTsung (268 commits)")[![a861252012](https://avatars.githubusercontent.com/u/48787370?v=4)](https://github.com/a861252012 "a861252012 (22 commits)")[![twdd-musih](https://avatars.githubusercontent.com/u/131228645?v=4)](https://github.com/twdd-musih "twdd-musih (20 commits)")

---

Tags

laravelJoymapCore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mtsung-joymap-core/health.svg)

```
[![Health](https://phpackages.com/badges/mtsung-joymap-core/health.svg)](https://phpackages.com/packages/mtsung-joymap-core)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
