Download the PHP package patrick-barreto/data-base without Composer

On this page you can find all versions of the php package patrick-barreto/data-base. 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 data-base

About Project

If you dont't have a php environment with a database, you can use this docker environment: https://github.com/PatrickBarreto/baseBackend

The next step of this code is:

If you have an idea or pull request to make, do it. Ideas are very welcome.

How to Install

.env

You need to fill your environments variables. If you want make it easy use https://packagist.org/packages/patrick-barreto/dot-env

How to Use

Repository

Use the Crud Instance

Use the Command Instance

Use the Query Class

IMPORTANT: Be carefull, here you controll what will be running. The application won't do nothing but execute the query.

Ressources for DML command Class

It is the same if instance manually or directilly with Crud Instance

Common for all down classes

This method is responsable to check if a table name was seted in the instance of class that heirded this class

This method is responsable to set a table in the instance of class that heirded this class

This method is responsable to set the Where Simple Conditction for the query of instance class that heirded this class

This method is responsable to set the Where In Conditction for the query of instance class that heirded this class

This method is responsable to concat the Inner Join command

This method is responsable to concat the Right Join command

This method is responsable to concat the Left Join command

This method is responsable to concat the Full Join command

This method is responsable to concat the Cross Join command

Select

DataBase\Actions\DML\Commands\Select

Set the distinct option, by default it is false

Set the fields option, by default its '*'

Set the limit option

Set the order option, ASC or DESC

Set the group by option.

Set the having option

Build the query sentense for a Select query

This method id responsable to return data with an associative array

This method is responsable to return data with an object of a class type. By default it is stdClass

Insert

DataBase\Actions\DML\Commands\Insert

Set the ignore option, by default it is false

Set the fields option, by default it is false

Set the values option, by default it is false

Set the values with a SELECT query

Build the query sentense for a Insert query

This method is responsable to run the query of the class without a fetch result.

Update

DataBase\Actions\DML\Commands\Update

This method is responsable for set a SET command for an Update query

Build the query sentense for a Update query

This method is responsable to run the query of the class without a fetch result.

Delete

DataBase\Actions\DML\Commands\Delete

Build the query sentense for a delete query

This method is responsable to run the query of the class without a fetch result.


All versions of data-base with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
patrick-barreto/exception Version ^1.0.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 patrick-barreto/data-base contains the following files

Loading the files please wait ....