Download the PHP package huseinarbi/bego without Composer

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

Bego

Bego is a PHP library that makes working DynamoDb tables simpler.

Working with models

Create your table's model class

Instantiating a table

Instantiate the tables you need throughout your app...

Working with queries

You can Query any DynamoDb table or secondary index, provided that it has a composite primary key (partition key and sort key)

Key condition and filter expressions

Multiple key condition / filter expressions can be added. DynamoDb applies key conditions to the query but filters are applied to the query results

Descending Order

DynamoDb always sorts results by the sort key value in ascending order. Getting results in descending order can be done using the reverse() flag:

Projecting attributes

To get just some, rather than all of the attributes, use a projection expression.

Working with result sets

The result set object implements the Iterator interface and canned by used straight way. It provived some handy methods as well.

Consistent Reads

DynamoDb performs eventual consistent reads by default. For strongly consistent reads set the consistent() flag:

Limiting Results

DynamoDb allows you to limit the number of items returned in the result. Note that this limit is applied to the key conidtion only. DynamoDb will apply filters after the limit is imposed on the result set:

Paginating

DynanmoDb limits the results to 1MB. Therefor, pagination has to be implemented to traverse beyond the first page. There are two options available to do the pagination work:

In some cases one may want to paginate accross multiple hops;

Capacity Units Consumed

DynamoDb can calculate the total number of read capacity units for every query. This can be enabled using the consumption() flag:

Performing a scan

Basic table scan's are supported. Filter expressions, results and pagination work the same as with queries

Create an item

Get an item

Working with item's attribute values

Update an item

Making use of an item's magic properties instead of set() and attribute()

Conditional update

Delete an item

Creating a table (experimental)


All versions of bego with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
aws/aws-sdk-php Version ^3.28
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 huseinarbi/bego contains the following files

Loading the files please wait ....