PHPackages                             threebenji/glodpalm - 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. threebenji/glodpalm

ActiveLibrary

threebenji/glodpalm
===================

金棕榈合同

v1.x-dev(9y ago)111MITPHP

Since Mar 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/threebenji/goldpalm)[ Packagist](https://packagist.org/packages/threebenji/glodpalm)[ RSS](/packages/threebenji-glodpalm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

金棕榈合同
=====

[](#金棕榈合同)

\##安装

```
composer require threebenji/glodpalm:"dev-master"

```

\##实例化

```
$test = new \Three\GoldPalm\GoldPalm(['env' => 'test', 'username' => 'xxx', 'password' => 'xxx']);

```

\##提交合同并且上线

```
$test->submit([
        'version' => 'dljn2014',
        'travel_name' => '张三',
        'travel_tel' => '13800138000',
        'transactor' => '李四',
        'price' => 100,
        'no'=>'',
        'travelerJson'=>json_encode([
            'traveler'=>'张三',
            'addr'=>'北京'
        ]),
        'supplierJson'=>json_encode([
            'corp'=>'北京中国国际旅行社有限公司',
            'corpCode'=>'L-BJ-CJ00056',
            'scope'=>'经营范围'
        ]),
        'groupcorpJson'=>json_encode([
            'corp'=>'北京中国国际旅行社有限公司',
            'corpCode'=>'L-BJ-CJ00056',
            'scope'=>'经营范围'
        ]),
        'lineJson'=>json_encode([
            'linename'=>"旅游线路",
            'teamcode'=>'1'
        ]),
        'payJson'=>json_encode([
            'payEachAdult'=>100,
            'payEachChild'=>200,
            'payTravel'=>300,
            'payGuide'=>100,
            'payDeadline'=>'2017-03-01',
            'payType'=>1,
            'payOther'=>''
        ]),
        'insuranceJson'=>json_encode([
            'agree'=>'2',
            'product'=>'太平洋出境意外险'
        ]),
        'groupJson'=>json_encode([
            'personLimit'=>10,
            'transAgree'=>1,
            'delayAgree'=>1,
            'changeLineAgree'=>1,
            'terminateAgree'=>1,
            'mergeAgree'=>1,
            'teminateDealType'=>1
        ]),
        'goldenweekJson'=>json_encode([
            'personLimit'=>10,
            'transAgree'=>1,
            'delayAgree'=>1,
            'changeLineAgree'=>1,
            'terminateAgree'=>1,
            'mergeAgree'=>1,
            'teminateDealType'=>1
        ]),
        'controversyJson'=>json_encode([
            'personLimit'=>10,
            'transAgree'=>1,
            'delayAgree'=>1,
            'changeLineAgree'=>1,
            'terminateAgree'=>1,
            'mergeAgree'=>1,
            'teminateDealType'=>1
        ]),
        'otherJson'=>json_encode([
            'supplementaryClause'=>'',
            'copys1'=>'贰',
            'copys2'=>'壹',
            'agencyComplaintsMobile'=>'010-xxxxxx',
            'lawState'=>'北京市',
            'lawCity'=>'北京市',
            'lawComplaintsMobile'=>'12301',
            'lawEmail'=>'',
            'lawAddress'=>'',
            'lawZip'=>''
        ]),
        "line_name"=>'线路名称',
        "team_code"=>"123",
        "days"=>2,
        "night_days"=>1,
        "start_on"=>"2017-03-01",
        "end_on"=>"2017-03-02",
        "traveler_num"=>1,
        "routes"=>[
            [
                'day'=>1,
                'stop'=>1,
                'starting_address'=>"北京",
                'destination_city'=>"北京",
                'destination_state'=>"北京",
                'destination_country'=>"中国",
                'trip'=>"行程"
            ],
            [
                'day'=>2,
                'stop'=>1,
                'starting_address'=>"北京",
                'destination_city'=>"北京",
                'destination_state'=>"北京",
                'destination_country'=>"中国",
                'trip'=>"行程2"
            ]
        ],
        'guests'=>[
            [
                'id_card'=>'370523199001221750',
                'name'=>'张三',
                'tel'=>'13800138000'
            ],
            [
                'id_card'=>'370523199001221750',
                'name'=>'张三1',
                'tel'=>'13800138001'
            ]
        ]

    ]);

```

\##方法

```
/**
 * 上传电子合同，上传后进入已提交状态 or 上传后不提交
 * @param $contract
 * @param $is_upload bool true 上传后不提交 false 上传后提交
 * @return mixed
 * @throws \Exception
 */
public function submit($contract, $is_upload = false)

/**
 * 提交已经上传的合同
 * @param $id
 * @param $no
 * @return bool
 * @throws \Exception
 */
public function submitStatus($id, $no)

/**
 * 取消合同
 * @param $id
 * @param $no
 * @return bool
 * @throws \Exception
 */
public function cancelContract($id, $no)

/**
 * 补充完善合同保险信息接口
 * @param $no
 * @param $insurance string json
 * @return bool
 * @throws \Exception
 */
public function complementInsurance($no, $insurance)

/**
 * 补充游客列表只有为提交的合同可以使用
 * @param $guests
 * @return bool
 * @throws \Exception
 */
public function complementGuest($guests)

/**
 * 补充签名功能
 * @param $id
 * @param $base64image
 * @return bool
 * @throws \Exception
 */
public function submitSign($id,$base64image)

/**
 * 根据合同ID获取是否签名
 * @param $id
 * @return bool|\Exception|\SoapFault
 * @throws \Exception
 */
public function getSignCreate($id)

/**
 * 重发短信
 * @param $id
 * @param $guestname
 * @param $guestmobile
 * @return bool
 * @throws \Exception
 */
public function resendMsg($id,$guestname,$guestmobile)

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

3361d ago

### Community

Maintainers

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

---

Top Contributors

[![leiprivate](https://avatars.githubusercontent.com/u/54799460?v=4)](https://github.com/leiprivate "leiprivate (11 commits)")[![yantianlei](https://avatars.githubusercontent.com/u/11863586?v=4)](https://github.com/yantianlei "yantianlei (2 commits)")

### Embed Badge

![Health badge](/badges/threebenji-glodpalm/health.svg)

```
[![Health](https://phpackages.com/badges/threebenji-glodpalm/health.svg)](https://phpackages.com/packages/threebenji-glodpalm)
```

PHPackages © 2026

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