Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 18, 2024 via composer

illuminate/database v8.83.9

The Illuminate Database package.
Package summary
Share
0
issues
1
license
25
MIT
Package created
5 Jun 2012
Version published
7 Apr 2022
Maintainers
1
Total deps
25
Direct deps
6
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
25 Packages, Including:
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
illuminate/collections@v8.83.27
illuminate/container@v8.83.27
illuminate/contracts@v8.83.27
illuminate/database@v8.83.9
illuminate/macroable@v8.83.27
illuminate/support@v8.83.27
nesbot/carbon@2.72.3
psr/clock@1.0.0
psr/container@1.1.2
psr/simple-cache@1.0.1
symfony/console@v5.4.39
symfony/deprecation-contracts@v3.5.0
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php73@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/service-contracts@v3.5.0
symfony/string@v6.4.7
symfony/translation@v6.4.7
symfony/translation-contracts@v3.5.0
voku/portable-ascii@1.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of illuminate/database 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
illuminate/collectionsv8.83.27-MIT
prod
illuminate/containerv8.83.27-MIT
prod
illuminate/contractsv8.83.27-MIT
prod
illuminate/macroablev8.83.27-MIT
prod
illuminate/supportv8.83.2783.71 kBMIT
prod
symfony/consolev5.4.39-MIT
prod dev

Visualizations

Frequently Asked Questions

What does illuminate/database do?

The Illuminate/Database is a comprehensive database toolkit for PHP. It provides an expressive query builder, an ActiveRecord-style ORM, and a schema builder. The illuminate/database package supports various databases, including MySQL, Postgres, SQL Server, and SQLite. The application notably serves as the database layer for the Laravel PHP framework.

How do you use illuminate/database?

You can incorporate Illuminate/Database in your PHP project by creating a new "Capsule" manager instance. This makes the package easy to configure for usage outside the Laravel framework.

To do this, you need to use the code:

use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;

$capsule->addConnection([
    'driver' => 'mysql',
    'host' => 'localhost',
    'database' => 'database',
    'username' => 'root',
    'password' => 'password',
    'charset' => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix' => '',
]);

Once the Capsule instance has been registered, you can use commands such as:

$users = Capsule::table('users')->where('votes', '>', 100)->get();
$results = Capsule::select('select * from users where id = ?', [1]);
Capsule::schema()->create('users', function ($table) {
    $table->increments('id');
    $table->string('email')->unique();
    $table->timestamps();
});

To use the Eloquent ORM, you can interact with your data models as in:

class User extends Illuminate\Database\Eloquent\Model {}

$users = User::where('votes', '>', 1)->get();

Where are the illuminate/database docs?

For extended documentation on how to use the various database facilities provided by this library, consult the Laravel framework documentation available on the Laravel website at https://laravel.com/docs.