kunal4sd/laravel6-salesforce-soapapi
Composer 安装命令:
composer require kunal4sd/laravel6-salesforce-soapapi
包简介
Laravel 6 Salesforce Force.com PHP Toolkit port
README 文档
README
This Laravel 5 package provides an interface for using Salesforce CRM through its SOAP API.
(Laravel 4 Salesforce Package can be found here)
Major upgrade
This package is intended to support both Laravel 5.1 LTS and 5.2+.
Laravel 5.1 package will be kept under version 1.* Laravel 5.2 package will be kept under version 2.*
Consider this when installing or upgrading
It also fixes a too much consuming session at Salesforce, thus these new versions needs adding the section aliases under config/app.php
Installation
The Laravel 5 package can be installed via Composer by requiring the
davispeixoto/laravel5-salesforce package in your project's composer.json.
{
"require": {
"davispeixoto/laravel5-salesforce": "~1.0"
}
}
And running a composer update from your terminal:
php composer.phar update
To use the Salesforce Package, you must register the provider when bootstrapping your Laravel 5 application.
Find the providers key in your config/app.php and register the AWS Service Provider.
'providers' => array( // ... Davispeixoto\Laravel5Salesforce\SalesforceServiceProvider::class, ) 'aliases' => array( // ... 'Salesforce' => Davispeixoto\Laravel5Salesforce\SalesforceFacade::class, )
Configuration
By default, the package uses the following environment variables to auto-configure the plugin without modification:
SALESFORCE_USERNAME
SALESFORCE_PASSWORD
SALESFORCE_TOKEN
Place your your enterprise WSDL file into your app storage/app/wsdl/ directory.
To customize the configuration file, publish the package configuration using Artisan.
php artisan vendor:publish
Update the settings in the generated config/salesforce.php configuration file with your credentials.
return [ 'username' => 'YOUR_SALESFORCE_USERNAME', 'password' => 'YOUR_SALESFORCE_PASSWORD', 'token' => 'YOUR_SALESFORCE_TOKEN', 'wsdl' => 'path/to/your/enterprise.wsdl.xml', ];
IMPORTANT: the PHP Force.com Toolkit for PHP only works with Enterprise WSDL
Usage
That's it! You're all set to go. Just use:
Use Salesforce; Route::get('/test', function() { try { echo print_r(Salesforce::describeLayout('Account'), true); } catch (Exception $e) { echo $e->getMessage(); echo $e->getTraceAsString(); } });
More Information
Check out the SOAP API Salesforce Documentation
License
This software is licensed under the MIT license
Versioning
This project follows the Semantic Versioning
Thanks
An amazing "Thank you, guys!" for Jetbrains folks, who kindly empower this project with a free open-source license for PhpStorm which can bring a whole new level of joy for coding.
kunal4sd/laravel6-salesforce-soapapi 适用场景与选型建议
kunal4sd/laravel6-salesforce-soapapi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.03k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「salesforce」 「crm」 「laravel」 「force.com toolkit」 「laravel 6」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kunal4sd/laravel6-salesforce-soapapi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kunal4sd/laravel6-salesforce-soapapi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kunal4sd/laravel6-salesforce-soapapi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP client for the Salesforce SOAP API
WakeOnWeb Salesforce client
FormRelay route for SFDC Web-To-Lead API.
Command-line utility for Vtiger CRM.
Library for Kommo (AmoCRM)
WakeOnWeb Salesforce bundle
统计信息
- 总下载量: 1.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-05