Download the PHP package milestone/interact without Composer

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

The package which enables direct interaction with appframe project tables.

install appframe
install interact

Create class with same name of incoming table, which implements the interface Milestone\Interact\Table

Give common namespace for all such classes and mention that namespace in interact configuration file in config folder.


If any data from import interact file required, the define public properties in the class in the name table,mode,_primarykey,data

If a method named, isValidImportRecord, is available, then this method will be called before executing each record.
That particular record will be the only argument supplied to this method.
This method should return boolean true, false or string mentioning the reason for invalid.

If a method named, recordImported exists, then this method will be called after executing each record.
This method received that particular record and id of execution.
Return value is ignored.

If a method named, preImport, is exists, then it will be called before starting the import action. It will be supplied with the argument, the total Content. Modified Content or null to be return.

If a method named, postImport, is exists, then it will be called after executing the whole action. It will be supplied with the argument, the total Content and Result object. This should respond with modified result which will be outputted or else with null to output default Result object


If any data for export action is required like table,created,updated then define public properties in the class in same name

If a method named, isValidExportGet OR isValidExportUpdate, is available, then this method will be called before executing each record of insert mode or update mode respectively.
That particular record will be the only argument supplied to this method.
This method should return boolean true or false.

If a method named, recordGetExported, recordUpdateExported exists, then this method will be called after executing each record of insert mode or update mode respectively.
This method received that particular record and id of execution.
Return value is ignored.

If a method named, preExportGet,preExportUpdate, is exists, then it will be called before starting the export action of mode insert and update respectively. It will be supplied with the argument, the query to be executed. This method should return the same or modified query or null;

If a method named, postExportGet,postExportUpdate, is exists, then it will be called after executing the whole action. It will be supplied with the argument, the eloquent record and exported record. Return value is ignored.


USAGE

For importing to web, send a file with json content having multiple activity, each activity composed of table,primary_key,mode and data. where data will have all records. url: /interact

For exporting from web, request to url in the format /interact/{tablename}?created_at=datetime&updated_at=datetime&format=xml&type=file

The root parameter interact can be changed to desired one in config


All versions of interact with dependencies

PHP Build Version
Package Version
Requires milestone/appframe Version ^0.11.3
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 milestone/interact contains the following files

Loading the files please wait ....