Download the PHP package lucasromanojf/ext-direct without Composer

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

Info

This is ext-direct provider for laravel 4.x (works with extjs 5 as well)

The idea behind ext-direct is to allow javascript to call remote php methods as they were client side javascript methods. This is reducing dramatically the development time.

Heavily(almost 99%) based on http://www.sencha.com/forum/showthread.php?102357-Extremely-Easy-Ext.Direct-integration-with-PHP

The original class was touched just a little bit.

Installation

Add this line to the composer.json require list and run composer update

Add to app.php 'providers' array:

This package comes with a Facade but you dont have to include it in your app.php it is automatically included.

You MUST publish or create this config file:

You MUST edit the config.php file:

Most important part is the api_classes array, there you have to list all the classes(normally controllers) from your application that you want to make availabe to extjs to call directly.

Note that it doesnt have to be associative array, you can simply list the class name in a normal indexed array. However if you list them as associative array then you can call them from extjs using the array element key instead of the actuall controller class name. This way you can hide your real application structure from the front end.

TAG Direct methods In order for a controller method to be made available to extjs/sencha to call directly two conditions must be met:

1. Method needs to be declared as **public**
2. Method needs to contain comment tag @direct

example:

add a route in your routes.php

Lastly add something like this in your index.html (after extjs library and before your application code!!!)

Now you should be able to call laravel controller methods from javascript directly


All versions of ext-direct with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 lucasromanojf/ext-direct contains the following files

Loading the files please wait ....