Download the PHP package bertugfahriozer/ci4commonmodel without Composer

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

CommonModel Library for CodeIgniter 4

CommonModel is a versatile and reusable model for CodeIgniter 4, designed to simplify common database operations such as selecting, inserting, updating, and deleting records. This library provides methods that support common SQL features like JOINs, WHERE conditions, LIKE filters, ordering, and more.

Features

Table of Contents

Installation

To use CommonModel in your CodeIgniter 4 project, follow these steps:

  1. Install with Composer:

  2. Load the model in your controller:

Usage

1. Retrieving Records (lists)

Fetch records from a database table with flexible filters such as WHERE, OR WHERE, LIKE, JOIN, and ordering. Supports limit and pagination.

2. Inserting Records (create)

Insert a single record into the database and return the newly inserted ID.

3. Batch Insert (createMany)

Insert multiple records at once.

4. Updating Records (edit)

Update existing records by specifying the WHERE conditions and the new data.

5. Deleting Records (remove)

Delete records from a table based on WHERE conditions.

6. Count Records (count)

Count the number of records that match a given condition.

7. Check Record Existence (isHave)

Check whether a record exists in a table with a specified condition.

8. Complex Queries (research)

Search records using LIKE queries and filtering by conditions.

9. Table and Database Management

Get Table List

Create a New Table

Remove a Table

Add Column to Table

Remove Column from Table

Rename Table

Modify Column Info

Truncate Table

Get Table Fields

Create a New Database

Remove a Database

Drop Primary Key

Drop Key

Drop Foreign Key

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

Bertuğ Fahri ÖZER


All versions of ci4commonmodel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4||^8.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 bertugfahriozer/ci4commonmodel contains the following files

Loading the files please wait ....