Skip to content
Pranjal Pandey edited this page May 26, 2022 · 11 revisions

Requirements

  • PHP 8.1 or greater
  • PHP PDO or other supported database adapter
  • Mysql, MariaDB, Sqlite or any other supported database. check the list here

Installation

You can install Arca ORM via Composer. If you don't have composer installed , you can download composer from here

composer require scrawler/arca

Setup

   <?php
    include './vendor/autoload.php'
    
    $connectionParams = array(
        'dbname' => 'YOUR_DB_NAME',
        'user' => 'YOUR_DB_USER',
        'password' => 'YOUR_DB_PASSWORD',
        'host' => 'YOUR_DB_HOST',
        'driver' => 'pdo_mysql', //You can use other supported driver this is the most basic mysql driver
    );

    $db =  new \Scrawler\Arca\Database($connectionParams);

Next Steps

Reaching out

  • If you are stuck or having trouble in documentation fell free to open a issue here
  • You can send me a mail at itspranjalpandey@gmail.com and I would try to reply to you query
  • You can send me tweet at @itspranjalpandey on twitter
  • If you would like to spread the word please do use #arcaorm #scrawler
Clone this wiki locally