Download the PHP package migliori/power-lite-pdo without Composer

On this page you can find all versions of the php package migliori/power-lite-pdo. 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 power-lite-pdo

PowerLite PDO

Static Badge GPLv3 License GitHub Release

PowerLite PDO is a lightweight, powerful PHP library that provides a simple and efficient way to interact with databases using PHP Data Objects (PDO). It supports multiple database drivers and includes features like easy connection management, query execution, result handling and pagination.

PowerLite PDO

Table of Contents

Features

Requirements

PHP ^7.4, PHP 8.x

Documentation

The documentation for PowerLite PDO is available on the PowerLite PDO website.

In addition to the documentation, a PHPDoc is also available here for more detailed information about the classes, methods, and their parameters.

Installation

Clone / download or install with Composer

Configuration

Open src/connection.php in your code editor and replace the constant's values with your database connection settings (DB_HOST, DB_NAME, DB_USER, DB_PASS, DB_PORT, DB_CHARSET).

Security concerns

For enhanced safety, store the file outside of your web server's document root (the directory that is served to the internet) and change the path accordingly in the configuration file (src/config.php). This prevents the file from being directly accessible via a URL.

Usage/Examples

Select records using the main Db class

  1. Include the bootstrap file and get the Db instance from the container:

  2. Use the select method from the Db class to select some records:

  3. Fetch the selected records one by one:

Select records using the fluent QueryBuilder

  1. Include the bootstrap file and get the QueryBuilder instance from the container:

  2. Use the QueryBuilder to select some records:

  3. Fetch the selected records one by one:

Select records with Pagination

  1. Include the bootstrap file and get the Pagination instance from the container:

  2. Select some records:

  3. Fetch the selected records one by one:

  4. Display the pagination:

Running Tests

To run tests, run the following command

Dependencies

Dev Dependencies

Contributing

Contributions are always welcome!

Please contact us for any improvement suggestions or send your pull requests

License

GNU General Public License v3.0


All versions of power-lite-pdo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
php-di/php-di Version ^6.4.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 migliori/power-lite-pdo contains the following files

Loading the files please wait ....