Download the PHP package niiknow/laratt without Composer

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

Laravel Table Tenancy (laratt)

Allow for multi-tenancy by using table prefix

Build Status

Also see laratt-api where this project was originally built and refactored.

Install:

Config:

Features

CONS It doesn't support table relationship.

API Schema

The image below is from our Swagger documentation of the laratt-api project.

Table Schema

Special multi-tables endpoint @ /api/v1/tables/{table}; where {table} is the table name you want to create. {table} must be all lower cased alphanumeric and underscore with mininum of 3 characters to 30 max. Example, let say x-tenant: clienta and {table} = product, then the resulting table will be clienta$product.

Also note that there are two ids: id and uid. id is internal to laratt. You should be using uid for all operations. uid is an auto-generated guid, if none is provide during insert.

Providing a uid allow the API update to effectively act as an merge/upsert operation. This mean that, if you call update with a uid, it will update if the record is found, otherwise insert a new record.

What about your own/custom schema? See example of our Profile Schema

Query-Syntax

This library provide simple query endpoint for search and bulk delete: api/v1/profile/query or api/v1/tables/{table}/query

Limiting

To limit the number of returned resources to a specific amount with keyword limit or per_page:

Sorting

To sort the resources by a column in ascending or descending order:

You could also have multiple sort queries:

Filtering

The basic format to filter the resources:

Note: The values are rawurldecode()d.

Filtering Options

Operator Description Example
eq Equal to /query?filter[]=column1:eq:123
neq Not equal to /query?filter[]=column1:neq:123
gt Greater than /query?filter[]=column1:gt:123
gte Greater than or equal to /query?filter[]=column1:gte:123
lt Less than /query?filter[]=column1:lt:123
lte Less than or equal to /query?filter[]=column1:lte:123
ct Contains text /query?filter[]=column1:ct:some%20text
nct Does not contains text /query?filter[]=column1:nct:some%20text
sw Starts with text /query?filter[]=column1:sw:some%20text
nsw Does not start with text /query?filter[]=column1:nsw:some%20text
ew Ends with text /query?filter[]=column1:ew:some%20text
new Does not end with text /query?filter[]=column1:new:some%20text
bt Between two values /query?filter[]=column1:bt:123\|321
nbt Not between two values /query?filter[]=column1:nbt:123\|321
in In array /query?filter[]=column1:in:123\|321\|231
nin Not in array /query?filter[]=column1:nin:123\|321\|231
nl Is null /query?filter[]=column1:nl
nnl Is not null /query?filter[]=column1:nnl

You can also do OR and AND clauses. For OR clauses, use commas inside the same filter[] query:

For AND clauses, use another filter[] query.

RequestQueryBuilder server-side usage

Below demo ficticious server-side DonationController that provide Laravel Paginate json data for some client-side ui.

License

The MIT License (MIT). Please see License File for more information.


All versions of laratt with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
laravel/framework Version >=8.0
league/csv Version ^9.0
maatwebsite/excel Version ^3.0
phpoffice/phpspreadsheet Version ^1.29.0
yajra/laravel-datatables-oracle Version ^10.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 niiknow/laratt contains the following files

Loading the files please wait ....