Download the PHP package hexmakina/crudites without Composer

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

Scrutinizer Code Quality

PHP 7.04 Required

License Latest Stable Version Scrutinizer Code Quality

Crudités ?

"Crudités, it's a cup of carrots sticks"

Create - Retrieve - Update - Delete - Introspection, Transaction, Errors & Schema

Crudites is a PHP PDO wrapper

Exception

CruditeException extends \Exception and is thrown by all Crudites components

Source

The Source object stores and validates a DSN (Data Source Name)

Instantiation

It is created using a DSN string, the constructor will extract and validates all the required information

mysql:host=localhost;dbname=testdb
mysql:host=localhost;port=3307;dbname=testdb

Exceptions

If the database's name or a proper driver cannot be found, a CruditesException is thrown with the message

Properties

The object stores

  1. The DSN string (constructor parameter)
  2. The database name (extracted from the DSN string)

The object validates the driver's name (extracted from DSN string) by calling \PDO::getAvailableDrivers()

Methods

When instantiated, the object provides two methods:

  1. DSN(), returns the DSN string (string)
  2. name(), returns the database name (string)

Connection

The Connection object relies on PDO to connect to a database.

Instantiation

It is created using

  1. a DSN string
  2. a username (optional)
  3. a password (optional)
  4. a list of driver options (optional)

Exceptions

The DSN string is validated using the Source object, and may throw CruditesException A PDO object is created and may throw a PDOException

Default Options

The PDO::ATTR_ERRMODE is the only option that cannot be overridden

Properties

The object stores:

  1. a Source object;
  2. a database name (string)
  3. a PDO object

Methods

When instantiated, the object provides the following methods:

Database related

Query execution

Transactions

Database

The object represent a SQL database, handles connection and introspection.

Introspection is a two step process:

  1. The INFORMATION_SCHEMA is queried and FK and UNIQUE constraints are stored in the object properties upon instantiation
  2. The table introspection, called inspection, is executed on demand using inspect(table_name) and the results are stored in the table cache property. Inspection uses introspection to create a complete representation of a table: fields, data type, defaults & constraints

Instantiation

It is created using a Connection object. The connection is stored and the database instrospection is executed.

Properties

Methods

When instantiated, the object provides the following methods:


All versions of crudites with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
hexmakina/black-box Version 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 hexmakina/crudites contains the following files

Loading the files please wait ....