Download the PHP package javanile/hamper without Composer

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

Hamper DB

Developer friendly database library for vtiger. Hamper improove the code quality and the readbility of your PHP code around database access and manipulation.

Why I use it?

Here is a list of compelling reasons to use it

Installation

You can install the package via composer:

Usage

You simply get your $hdb object to access on database

📃 Documentation

😎 The documentation lists all the functions you can use to make the code simple and easy to read.

The access you have on the data inside the database is based on extraction methods that return array and that you can easily manipulate with foreach. Use the functions well because they allow you to take a single record or a list of records or all the values of a column. Before starting to use it, read the list of functions carefully, and you will automatically use the best one based on the context. For each function you are also presented, the "😿 Legacy", the version of the old style Vtiger code you can replace with Hamper functions, comparing them, and you will realize how Hamper improves your work.

All Functions

The following methods are used to manipulate records into database

The following methods are used to manipulate database tables and fields


Execute query

Executes the given parametric query

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->query(...) function

[back to top ☝]


Get a single record

Fetches the next row from the result set rows by the given parametric query.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->fetch(...) function

[back to top ☝]


Get a list of records

Returns an array containing all of the result set rows by the given parametric query.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->fetchAll(...) function

[back to top ☝]


Get a value from record

Fetches the next row from the result set rows by the given parametric query.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->fetchValue(...) function

[back to top ☝]


Get value by key column

Execute a query to check if record with specific key and value exists.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->value(...) function

[back to top ☝]


Check if record exists

Execute a query to check if record with specific key and value exists.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->exists(...) function

[back to top ☝]


Insert a record

Inserts the given record within the selected table.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->insert(...) function

[back to top ☝]


Get last ID

Return last insert ID value for the selected table.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->lastInsertId(...) function

[back to top ☝]


Update a single record

Updates the given record with the given data.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->update(...) function

[back to top ☝]


Delete a single record

Deletes the given record within the given table.

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->delete(...) function

[back to top ☝]


Create new table

Usage

Examples

This method is useful to handle this situations

😿 Legacy

Please, replace this kind of legacy code with the $hdb->create(...) function

[back to top ☝]


Changelog

Please see CHANGELOG for more information on what has changed recently.

Testing

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Socialware

We highly appreciate if you create a social post on Twitter with following button

Share on Twitter

Credits

This project exists thanks to all the people who contribute.

Support us

Javanile is a community project agency based in Sicily, Italy. You'll find an overview of all our projects on our website.

Does your business depend on our contributions? Reach out us on Patreon.

License

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


All versions of hamper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 javanile/hamper contains the following files

Loading the files please wait ....