Download the PHP package eventfarm/restforcephp without Composer

On this page you can find all versions of the php package eventfarm/restforcephp. 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 restforcephp

Restforce PHP

Travis Downloads Packagist

This is meant to emulate what the ejhomes/restforce gem is doing for rails.

Installation

This library requires PHP 7.1 or later; we recommend using the latest available version of PHP. It has been test through the latest version of PHP (v8.3 as of this writing)

Or.

Add the following lines to your composer.json file.

Project Defaults

Access Token Information

OAuth Scopes

Consult the Salesforce OAuth 2.0 Documentation to find out what Available OAuth Scopes your app needs.

Salesforce Documentation

Links to Salesforce documentation pages can be found in each section. Alternatively, here is the holy grail of the Saleforce endpoints.

Usage

Limits

Docs Returns a list of daily API limits for the salesforce api. Refer to the docs for the full list of options.

public function limits(): \Psr\Http\Message\ResponseInterface

UserInfo

Docs Get info about the logged-in user.

public function limits(): \Psr\Http\Message\ResponseInterface

Query

Docs Use the Query resource to execute a SOQL query that returns all the results in a single response.

public function query(string $query): \Psr\Http\Message\ResponseInterface

Find

Docs Find resource $id of $sobject, optionally specify the fields you want to retrieve in the fields parameter and use the GET method of the resource.

public function find(string $sobject, string $id, array $fields = []): \Psr\Http\Message\ResponseInterface

Describe

Docs Completely describes the individual metadata at all levels for the specified object.

public function describe(string $sobject): \Psr\Http\Message\ResponseInterface

Create

Docs Create new records of $sobject. The response body will contain the ID of the created record if the call is successful.

public function create(string $sobject, array $data): \Psr\Http\Message\ResponseInterface

Update

Docs You use the SObject Rows resource to update records. The response will be the a bool of $success.

public function update(string $sobject, string $id, array $data):bool

Contributing

Thanks for considering contributing to our Restforcephp project. Just a few things:

Unit Tests:

With Code Coverage:

Check PHP-CS PSR2 Test:

Apply PHP-CS PSR2 Fix:

Auto runs and resolves some low hanging PSR2 fixes, this might not get all of them, so rerun the check after.

Check Compatability for PHP Version:


All versions of restforcephp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
psr/http-message Version ^1.0
guzzlehttp/guzzle Version ~7.4.5
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 eventfarm/restforcephp contains the following files

Loading the files please wait ....