PHPackages                             cloudassessments/salesforce-web-to-lead - 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. cloudassessments/salesforce-web-to-lead

ActiveLibrary

cloudassessments/salesforce-web-to-lead
=======================================

A PHP package for submitting data to Salesforce from the backend using their frontend Web-to-Lead method.

v1.0(8y ago)39821[1 PRs](https://github.com/CloudAssessments/salesforce-web-to-lead/pulls)MITPHPPHP &gt;=5.6

Since Aug 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/CloudAssessments/salesforce-web-to-lead)[ Packagist](https://packagist.org/packages/cloudassessments/salesforce-web-to-lead)[ Docs](https://github.com/CloudAssessments/salesforce-web-to-lead)[ RSS](/packages/cloudassessments-salesforce-web-to-lead/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Salesforce Web-to-Lead
----------------------

[](#salesforce-web-to-lead)

Generally when using Salesforce's Web-to-Lead feature to send form submissions to your Salesforce instance you have to send them from the frontend by setting the HTML form target attribute to a salesforce.com URL, by-passing your own controllers and not storing submission info in your own database.

Using this package, you can send your leads to Salesforce from the backend of your application when and where you want to, ideally from the controller that already handles storing your form sumbissions.

Features
--------

[](#features)

- Send leads using the Salesforce Web-to-Lead feature from the backend of your application using PHP instead of the frontend using HTML
- A debug option that when enabled will send you an email from Salesforce on each submission informing you whether the lead was successfully sent; and if it was not, details on what went wrong.
- Method-chaining

### Installation

[](#installation)

Install the latest version with

```
$ composer require cloudassessments/salesforce-web-to-lead
```

### Basic Usage

[](#basic-usage)

```
