Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hermawanramadhan authored Jun 24, 2023
1 parent 9a53bd3 commit 3580467
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,11 @@ For more complete example and demo please visit [Documentation here](https://cod

## Installing

### Using composer (recommended)
### Using composer
Use composer to install CodeIgniter4-DataTables into your project :

> composer require hermawan/codeigniter4-datatables
### Manual installation
Or If you prefer not to use Composer to install, you can install manually.
Download this from git repository. Extract and rename folder to `codeigniter4-datatables` in example place this on `ThirdParty` folder.

also this library need download dependency:
- this library require `php-sql-parser`. download here https://github.com/greenlion/PHP-SQL-Parser Extract and rename also to `php-sql-parser`.
Then open `app/Config/Autoload.php` and add namespace to the `$psr4` array.

```php
$psr4 = [
APP_NAMESPACE => APPPATH, // For custom app namespace
'Config' => APPPATH . 'Config',
'PHPSQLParser' => APPPATH .'ThirdParty/php-sql-parser/src/PHPSQLParser', // <-- namespace for php-sql-parser
'Hermawan\DataTables' => APPPATH .'ThirdParty/codeigniter4-datatables/src', // <-- namespace for this library
];
```


## Simple Initializing

Expand Down

0 comments on commit 3580467

Please sign in to comment.