Download the PHP package dreamfactory/javascript-sdk without Composer

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

Address Book for JavaScript

This repo contains a sample address book application for JavaScript that demonstrates how to use the DreamFactory REST API. It includes new user registration, user login, and CRUD for related tables.

Installing DreamFactory on your local machine

To download and install DreamFactory, choose the desired installation package here.

Configuring your DreamFactory instance to run the app

Running the Address Book app

You can launch the app from the Apps tab in the admin console, or by opening your local index.html in your browser.

When the app starts up you can register a new user, or log in as an existing user. Currently the app does not support registering and logging in admin users.

Example API calls

The DreamFactory Address Book for JavaScript uses AJAX to make API calls and the file functions.js contains the most common functions for CRUD operations.

The general form of a DreamFactory REST API call is:

<rest-verb> http[s]://<server-name>/api/v2/[<service-api-name>]/[<resource-path>][?<param-name>=<param-value>]

The JavaScript app AJAX call format is:

Breaking down each parameter:

Login and Registration Examples

Login

The user/session API request will return a session token.

Registration

The API request will return a session token when the (optional) login=true parameter is appended to the url. So with this parameter appended, the new registered user doesn't have to login to get a session token.

The login and registration examples illustrates how to make API requests to DreamFactory. This Address Book app has functions for common API request types, so in the following examples these functions are used.

Examples of Fetching Records

Fetch All Records in Table

Fetching Specific Fields

Fetching with a Filter Applied

Creating a Record

Deleting Records

Deleting a Single Record by ID

Deleting Multiple Records by ID

Deleting Records Matching Field Conditions

Additional Resources

More detailed information on the DreamFactory REST API is available here.

The live API documentation included in the admin console is a great way to learn how the DreamFactory REST API works.


All versions of javascript-sdk with dependencies

PHP Build Version
Package Version
No informations.
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 dreamfactory/javascript-sdk contains the following files

Loading the files please wait ....