Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
phattarachai committed Nov 27, 2022
1 parent a6be5f5 commit 4aa4f09
Show file tree
Hide file tree
Showing 18 changed files with 1,894 additions and 101 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/vendor/
node_modules/
npm-debug.log
yarn-error.log

bootstrap/compiled.php
app/storage/

public/storage
public/hot
public_html/storage
public_html/hot

storage/*.key
.env
Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache


/.idea
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions .idea/laravel-odbc.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
This integration allows the use of <b>odbc_*</b> php function with Laravel framework instead of PDO.<br>
It emulates PDO class used by Laravel.

This is a forge from `andreossido/laravel-odbc` to support latest PHP and Laravel versions.

### # How to install
> `composer require abram/laravel-odbc` To add source in your project
> `composer require phattarachai/laravel-odbc` To add source in your project
### # Usage Instructions
It's very simple to configure:
Expand All @@ -24,12 +26,12 @@ It's very simple to configure:
```PHP
'providers' => [
...
Abram\Odbc\ODBCServiceProvider::class
Phattarachai\Odbc\ODBCServiceProvider::class
]
```

### # Eloquen ORM
You can use Laravel, Eloquent ORM and other Illuminate's components as usual.
### # Eloquent ORM
You can use Laravel, Eloquent ORM and other Illuminates components as usual.
```PHP
# Facade
$books = DB::connection('odbc-connection-name')->table('books')->where('Author', 'Abram Andrea')->get();
Expand Down
26 changes: 14 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
{
"name": "abram/laravel-odbc",
"name": "phattarachai/laravel-odbc",
"description": "ODBC integration for Laravel framework ",
"type": "library",
"homepage": "https://github.com/andreossido/laravel-odbc",
"homepage": "https://github.com/phattarachai/laravel-odbc",
"authors": [
{
"name": "Andrea Abram",
"email": "andreossido@gmail.com",
"homepage": "https://github.com/andreossido",
"name": "Phattarachai Chaimongkol",
"email": "phatchai28@gmail.com",
"homepage": "https://phattarachai.dev",
"role": "Developer"
}
],
"require": {
"php": "^5.3.3 || >=7.0",
"illuminate/database": "~5.1 || >= 6.0",
"illuminate/support": "~5.1 || >= 6.0"
"php": "^8.0",
"illuminate/database": ">= 6.0",
"illuminate/support": ">= 6.0",
"ext-pdo": "*",
"ext-odbc": "*"
},
"autoload": {
"classmap": [
"src"
]
"psr-4": {
"Phattarachai\\Odbc\\": "src"
}
},
"extra": {
"laravel": {
"providers": [
"Abram\\Odbc\\ODBCServiceProvider"
"Phattaarachai\\Odbc\\ODBCServiceProvider"
]
}
}
Expand Down
Loading

0 comments on commit 4aa4f09

Please sign in to comment.