Download the PHP package bertugfahriozer/ci4mongodblibrary without Composer

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

Codeigniter 4 MongoDB Kitaplığı ve Ortak Model

Sistem Gereksinimleri

Kurulum

Mongo Driver ve Composer'a sisteminize kurmuş olmalısınız. Kurulum için şu bağlantıları izleyin:

Bir config dosyası oluşturmalısınız. Dosya oluşturduğunuzda, php etiketi için boşlukları silin. (app/Config/MongoConfig.php)

Uzak Bağlantı için srv değişkenine yorum satırındakini veri kullanılabilir veya boş bırakılabilir. authMechanism değişkeni bağlantı yapılırken gereken güvenlik protokolünü belirtmeniz için oluşturulmuştur.

Eğer isterseniz başka bir veritabanına bağlanmak için model içinde $dbVar=new Mongo('dbName'). bu sayede tek bir Ci4 uygulaması içinde birden çok veritabanına müdehale edebilirsiniz.

composer require bertugfahriozer/ci4mongodblibrary

Eğer Composer ile yükledikten sonra direkt devam etmek istiyorsanız namespace düzeni şu şekilde :

use ci4mongodblibrary\Models\CommonModel;

use ci4mongodblibrary\Libraries\Mongo;


Manuel kurulum istiyorsanız aşağıdaki adımları takip edebilirsiniz.

Codeigniter 4 projenize dosyaları taşıyabilirsiniz ve namespace değiştirmeniz gerekir =>

app/Libraries/Mongo.php,
app/Config/MongoConfig.php,
app/Models/CommonModel.php.


Codeigniter 4 MongoDB Library & Common Model

System Requirements

Installation

You must have Mongo Driver and Composer. Follow these links for installation:

You must create a config file. When you create file, delete spaces for php tag. (app/Config/MongoConfig.php)

For Remote Connection, the data in the comment line can be used or left blank in the srv variable. The authMechanism variable is created to specify the required security protocol when connecting.

If you want to connect to another database, $dbVar=new Mongo('dbName') in the model. In this way, you can intervene in multiple databases within a single Ci4 application.

composer require bertugfahriozer/ci4mongodblibrary

If you want to continue directly after installing with Composer, the namespace layout is as follows:

use ci4mongodblibrary\Models\CommonModel;

use ci4mongodblibrary\Libraries\Mongo;


if do you want manual install you can follow these steps.

You can move files in your Codeigniter 4 project and you must change namespaces =>

app/Libraries/Mongo.php,
app/Config/MongoConfig.php,
app/Models/CommonModel.php.


All versions of ci4mongodblibrary with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3||^8.0
mongodb/mongodb Version ^1.8
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/ci4mongodblibrary contains the following files

Loading the files please wait ....