Download the PHP package rantes/dumbophp without Composer

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

DumboPHP

Build Status Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License

Summary

PHP Framework project built with MVC architecture, OOP paradigm and full ORM (native, not vendor).

Setup

via composer

Server configuration

Testing the framework

The framework ships with a self-contained test suite under tests/ that uses DumboPHP to test DumboPHP (SQLite :memory:, no external dependencies).

It exercises the ActiveRecord ORM, validations, model hooks, relations, migrations, routing/controllers, the inflection helpers, and the Timothy spy/stub/mock helpers. See tests/README.md for the full guide and .kiro/bugs/ for issues it surfaced.

Protected reads: DUMBO_QUOTE_CONDITIONS

By default the ORM builds the WHERE of Find, Find_by_* and Paginate by concatenating the values into the SQL (field = 'value'), exactly as before. Writes (Save, Insert, Update(data)) and Find($id) have always used bound parameters.

Define the constant in your config/host.php to make reads by value safe (it is OFF unless you define it as true):

The application keeps calling the ORM exactly the same way — no change in Find, Find_by_* or the array conditions, and the application must not escape or quote anything itself. With the constant on:

Piece Behaviour
Values ([field, value], Find_by_*) Bound as named parameters (:__c0, :__c1, … unique per query, native prepared statements). Quotes, backslashes, %, _, Unicode, empty strings and double spaces/newlines are matched literally. Numbers and numeric strings both work.
null [f, null] / [f, '=', null] → f IS NULL; [f, '!=', null] / '<>' → f IS NOT NULL. null with any other operator (<, LIKE, …) or inside BETWEEN throws. Before, null meant = ''.
IN / NOT IN One placeholder per item (null items are skipped; a scalar is a list of one). Empty list: IN → false (1=0), NOT IN → true (1=1).
BETWEEN [f, 'BETWEEN', a, b], both bound, neither may be null.
LIKE / NOT LIKE The whole pattern is bound. % and _ keep their wildcard meaning in LIKE (and are literal in =); to match them literally in a LIKE, escape them in the pattern (\%, \_ in MySQL/PostgreSQL; SQLite has no default escape character). The ORM does not escape the pattern for you.
Field names Must be a real column of the model's table (or its pk/rowid), or table.column for JOINs. Anything else throws QueryConditionException.
Operators Whitelist: = != <> < > <= >= LIKE NOT LIKE IN NOT IN BETWEEN (case/space-insensitive). Anything else throws.
sort (ORDER BY) Each term must be a model column, table.column, an alias declared as AS alias in fields, or a numeric position, with optional ASC/DESC. Functions/expressions (RAND(), …) throw.
limit n or offset,n with non-negative integers (cast to int); anything else throws.
Paginate The same bound parameters feed the COUNT and the page query.
Save() The primary key of the UPDATE is always bound (even with the constant off). validate['unique'] uses the array form.

Still the caller's responsibility (raw SQL by design): string conditions, and() / or(), join, group, fields, Find_by_SQL. A string condition that contains ? or :name outside quotes must not be mixed with array conditions when the constant is on.

Before turning it on in an app: (1) every field used in array conditions / Find_by_* is a real column (or table.column); (2) no code escapes values by hand before calling the ORM for those forms (double escaping would search for the escaped text); (3) every sort is a plain column list; (4) anything that relied on null meaning '' or on an empty IN list is reviewed; (5) run the app's suite with the constant on, and run the framework suite on MySQL (see tests/README.md).

Go Further

For more info, please visite homepage DumboPHP.


All versions of dumbophp with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
ext-pdo Version *
ext-json Version *
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 rantes/dumbophp contains the following files

Loading the files please wait ...