Download the PHP package augustash/ash_salesforce without Composer

On this page you can find all versions of the php package augustash/ash_salesforce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ash_salesforce

Ash Salesforce

Sends webform and contact form submissions to Salesforce as Cases or Leads, through the Web-to-Case or Web-to-Lead form the client's Salesforce admin generates. No connected app, no API login.

How it works

  1. Paste the generated form at Configuration → Web services → Salesforce form mappings → Salesforce forms. The HTML Salesforce generates is the whole description of the org: endpoint, org ID, field IDs, max lengths and picklist values. The page shows what it read, so a bad paste is obvious.
  2. Add a mapping. Pick the site form and the Salesforce form, then walk through the site form one field at a time and click the Salesforce field it goes to. The likeliest target is offered first, outlined and marked Suggested; Don't send keeps a field on the site only. Obvious non-data (buttons, markup, CAPTCHAs, elements hidden from the form) is skipped.
  3. Set fixed values: the record type that routes the record, an origin that says which site and form it came from. Picklists are stored by option label, not by ID.
  4. Review and save. Edit opens on the summary; any one choice can be changed without walking the form again.

Submissions are queued on save, sent at the end of the same request, and retried by cron if Salesforce is down. A 4xx is logged and dropped.

Origin: which site, which form

One org usually takes records from several sites, and from several forms on each. So a new mapping suggests Case Origin (or Lead Source) as <site label> <form label>, e.g. Metro Contact the MAC, editable before saving. Set the site label under Settings; empty uses the site name.

The client's admin has to add each value to the Origin picklist and enable it for the record type, or a restricted picklist drops the record silently.

One mapping, several orgs

Custom field and picklist IDs differ between a sandbox and production. Paste each org's form as its own Salesforce form. Mappings key everything by stable names (the standard field name, or a custom field's label), so pointing an environment at another org is one override in settings.php:

To keep an environment from sending at all:

Things to know

Tests

Tagged aai and ash_salesforce. Salesforce is mocked; nothing is posted.


All versions of ash_salesforce with dependencies

PHP Build Version
Package Version
Requires drupal/core Version ^10.3 || ^11
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package augustash/ash_salesforce contains the following files

Loading the files please wait ...