Firebird Illuminate package for Laravel 5

Overview

laravel-firebird

Please Note:

This package has been abandoned by it's creator, when I created it there were no other decent laravel packages around and I needed it for one specific project. That project has since migrated and this driver was no longer necessary. My initial feeling was that the community would take it up and use my work as a base, which has happened if you look at the many forks that have been created. I trully wish I had more time to devote to this, as it was a passion project for a while.

Recommended forks of this project include:

Thanks to all of you who have downloaded and found this package useful.

Jacques.

Comments
  • PDOException in Connector.php line 55: could not find driver

    PDOException in Connector.php line 55: could not find driver

    Detail

    1. in Connector.php line 55
    2. at PDO->__construct('firebird:dbname=localhost:/storage/firebird/name_database.FDB', 'sysdba', 'masterkey', array('0', '2', '0', false, false)) in Connector.php line 55

    Somebody could help me?

    I coded

    composer require jacquestvanzuydam/laravel-firebird:dev-5.1-support

    added to config/database.php

        'firebird' => [
            'driver'   => 'firebird',
            'host'     => env('DB_HOST', 'localhost'),
            'database' => '/storage/firebird/G_CHIOSCO.FDB',
            'username' => 'sysdba',
            'password' => 'masterkey',
            'charset'  => env('UTF8'),
        ],
    

    added to config/app.php

    Firebird\FirebirdServiceProvider::class,

    added

    DB_CHARSET=UTF8

    I use in the same project also a mysql database, so in the model where i need this connection i coded

    added to the stats.php model

    protected $connection = 'firebird';

    Thanks a lot look like great job and i would like try!

    opened by pfloriginale 19
  • Argument 1 passed to setReconnector() Laravel 5.8.5+

    Argument 1 passed to setReconnector() Laravel 5.8.5+

    Hello, I have a problem with the library since the version of laravel 5.8.5 onwards, even probe with a clean installation and gives the same error

    Argument 1 passed to Illuminate\Database\Connection::setReconnector() must be callable, null given, called in ...\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php on line 179

    opened by darkzdiez 8
  • Where i add this ? 'Firebird\FirebirdServiceProvider'

    Where i add this ? 'Firebird\FirebirdServiceProvider'

    My config/app.php

    <?php
    
    return [
    
        /*
        |--------------------------------------------------------------------------
        | Application Name
        |--------------------------------------------------------------------------
        |
        | This value is the name of your application. This value is used when the
        | framework needs to place the application's name in a notification or
        | any other location as required by the application or its packages.
        |
        */
    
        'name' => env('APP_NAME', 'Laravel'),
    
        /*
        |--------------------------------------------------------------------------
        | Application Environment
        |--------------------------------------------------------------------------
        |
        | This value determines the "environment" your application is currently
        | running in. This may determine how you prefer to configure various
        | services your application utilizes. Set this in your ".env" file.
        |
        */
    
        'env' => env('APP_ENV', 'production'),
    
        /*
        |--------------------------------------------------------------------------
        | Application Debug Mode
        |--------------------------------------------------------------------------
        |
        | When your application is in debug mode, detailed error messages with
        | stack traces will be shown on every error that occurs within your
        | application. If disabled, a simple generic error page is shown.
        |
        */
    
        'debug' => env('APP_DEBUG', false),
    
        /*
        |--------------------------------------------------------------------------
        | Application URL
        |--------------------------------------------------------------------------
        |
        | This URL is used by the console to properly generate URLs when using
        | the Artisan command line tool. You should set this to the root of
        | your application so that it is used when running Artisan tasks.
        |
        */
    
        'url' => env('APP_URL', 'http://localhost'),
    
        /*
        |--------------------------------------------------------------------------
        | Application Timezone
        |--------------------------------------------------------------------------
        |
        | Here you may specify the default timezone for your application, which
        | will be used by the PHP date and date-time functions. We have gone
        | ahead and set this to a sensible default for you out of the box.
        |
        */
    
        'timezone' => 'UTC',
    
        /*
        |--------------------------------------------------------------------------
        | Application Locale Configuration
        |--------------------------------------------------------------------------
        |
        | The application locale determines the default locale that will be used
        | by the translation service provider. You are free to set this value
        | to any of the locales which will be supported by the application.
        |
        */
    
        'locale' => 'en',
    
        /*
        |--------------------------------------------------------------------------
        | Application Fallback Locale
        |--------------------------------------------------------------------------
        |
        | The fallback locale determines the locale to use when the current one
        | is not available. You may change the value to correspond to any of
        | the language folders that are provided through your application.
        |
        */
    
        'fallback_locale' => 'en',
    
        /*
        |--------------------------------------------------------------------------
        | Encryption Key
        |--------------------------------------------------------------------------
        |
        | This key is used by the Illuminate encrypter service and should be set
        | to a random, 32 character string, otherwise these encrypted strings
        | will not be safe. Please do this before deploying an application!
        |
        */
    
        'key' => env('APP_KEY'),
    
        'cipher' => 'AES-256-CBC',
    
        /*
        |--------------------------------------------------------------------------
        | Logging Configuration
        |--------------------------------------------------------------------------
        |
        | Here you may configure the log settings for your application. Out of
        | the box, Laravel uses the Monolog PHP logging library. This gives
        | you a variety of powerful log handlers / formatters to utilize.
        |
        | Available Settings: "single", "daily", "syslog", "errorlog"
        |
        */
    
        'log' => env('APP_LOG', 'single'),
    
        'log_level' => env('APP_LOG_LEVEL', 'debug'),
    
        /*
        |--------------------------------------------------------------------------
        | Autoloaded Service Providers
        |--------------------------------------------------------------------------
        |
        | The service providers listed here will be automatically loaded on the
        | request to your application. Feel free to add your own services to
        | this array to grant expanded functionality to your applications.
        |
        */
    
        'providers' => [
    
            /*
             * Laravel Framework Service Providers...
             */
            Illuminate\Auth\AuthServiceProvider::class,
            Illuminate\Broadcasting\BroadcastServiceProvider::class,
            Illuminate\Bus\BusServiceProvider::class,
            Illuminate\Cache\CacheServiceProvider::class,
            Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
            Illuminate\Cookie\CookieServiceProvider::class,
            Illuminate\Database\DatabaseServiceProvider::class,
            Illuminate\Encryption\EncryptionServiceProvider::class,
            Illuminate\Filesystem\FilesystemServiceProvider::class,
            Illuminate\Foundation\Providers\FoundationServiceProvider::class,
            Illuminate\Hashing\HashServiceProvider::class,
            Illuminate\Mail\MailServiceProvider::class,
            Illuminate\Notifications\NotificationServiceProvider::class,
            Illuminate\Pagination\PaginationServiceProvider::class,
            Illuminate\Pipeline\PipelineServiceProvider::class,
            Illuminate\Queue\QueueServiceProvider::class,
            Illuminate\Redis\RedisServiceProvider::class,
            Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
            Illuminate\Session\SessionServiceProvider::class,
            Illuminate\Translation\TranslationServiceProvider::class,
            Illuminate\Validation\ValidationServiceProvider::class,
            Illuminate\View\ViewServiceProvider::class,
    
    
            /*
             * Package Service Providers...
             */
    
    
            /*
             * Application Service Providers...
             */
            App\Providers\AppServiceProvider::class,
            App\Providers\AuthServiceProvider::class,
            // App\Providers\BroadcastServiceProvider::class,
            App\Providers\EventServiceProvider::class,
            App\Providers\RouteServiceProvider::class,
    
        ],
    
        /*
        |--------------------------------------------------------------------------
        | Class Aliases
        |--------------------------------------------------------------------------
        |
        | This array of class aliases will be registered when this application
        | is started. However, feel free to register as many as you wish as
        | the aliases are "lazy" loaded so they don't hinder performance.
        |
        */
    
        'aliases' => [
    
            'App' => Illuminate\Support\Facades\App::class,
            'Artisan' => Illuminate\Support\Facades\Artisan::class,
            'Auth' => Illuminate\Support\Facades\Auth::class,
            'Blade' => Illuminate\Support\Facades\Blade::class,
            'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
            'Bus' => Illuminate\Support\Facades\Bus::class,
            'Cache' => Illuminate\Support\Facades\Cache::class,
            'Config' => Illuminate\Support\Facades\Config::class,
            'Cookie' => Illuminate\Support\Facades\Cookie::class,
            'Crypt' => Illuminate\Support\Facades\Crypt::class,
            'DB' => Illuminate\Support\Facades\DB::class,
            'Eloquent' => Illuminate\Database\Eloquent\Model::class,
            'Event' => Illuminate\Support\Facades\Event::class,
            'File' => Illuminate\Support\Facades\File::class,
            'Gate' => Illuminate\Support\Facades\Gate::class,
            'Hash' => Illuminate\Support\Facades\Hash::class,
            'Lang' => Illuminate\Support\Facades\Lang::class,
            'Log' => Illuminate\Support\Facades\Log::class,
            'Mail' => Illuminate\Support\Facades\Mail::class,
            'Notification' => Illuminate\Support\Facades\Notification::class,
            'Password' => Illuminate\Support\Facades\Password::class,
            'Queue' => Illuminate\Support\Facades\Queue::class,
            'Redirect' => Illuminate\Support\Facades\Redirect::class,
            'Redis' => Illuminate\Support\Facades\Redis::class,
            'Request' => Illuminate\Support\Facades\Request::class,
            'Response' => Illuminate\Support\Facades\Response::class,
            'Route' => Illuminate\Support\Facades\Route::class,
            'Schema' => Illuminate\Support\Facades\Schema::class,
            'Session' => Illuminate\Support\Facades\Session::class,
            'Storage' => Illuminate\Support\Facades\Storage::class,
            'URL' => Illuminate\Support\Facades\URL::class,
            'Validator' => Illuminate\Support\Facades\Validator::class,
            'View' => Illuminate\Support\Facades\View::class,
    
        ],
    
    ];
    
    help wanted 
    opened by danillo10 8
  • special characters returns letter b

    special characters returns letter b

    This is the query returns:

    0 => array:6 [▼ "CODCC" => "001" "DSCCC" => b"INSCRIÇÃO IPSC - PISTOLA" "VALOR" => "150.00" "DT_ATZ" => null "DT_INI_INS" => "2016-02-20" "DT_FIM_INS" => "2016-02-29" ]

    Note that in the "DSCCC" => b "INSCRIÇÃO IPSC - PISTOLA" there is a b before starting the registry value, every time the record has some special character that happens, so the laravel can not transform variable in information.

    Can you help me please?

    opened by alexrodcruz 7
  • Cant return UTF8 result

    Cant return UTF8 result

    I have this erro The Response content must be a string or object implementing __toString(), "boolean" given. when i trying to get data with utf8 charsets like "Almacén"

    opened by zamarrong 6
  • PDOException: unsupported driver[firebird

    PDOException: unsupported driver[firebird

    I had installed this package using: composer require jacquestvanzuydam/laravel-firebird:dev-5.5-support and i installed also php7.0-interbase tha enables firebird pdo i enabled pdo-firebird php module with: phpenmod pdo_firebird when i run : php -m it shows me that pdo_firebird is compiled and loaded.

    when i print : print_r(PDO::getavailabledrivers()); it shows

    [0] => 'firebird'

    but when i run laravel thinker and try to execute: App\EMPLOYEE::all();

    it shows:

    InvalidArgumentException with message: UnsupportedDriver[firebird]'

    I'm using php 7 and firebird 2.5 superclassic under ubuntu 16.04 xenial

    opened by selmo47 5
  • Name of tables and fields

    Name of tables and fields

    The tables created by artisan migrate in IBOConsole always appears with quotation marks, for use in IBOconsole: select * from "users". To use the pre-existing tables, created in IBOConsole, in laravel whenever I have to do it always with their names and fields in capital letters. I hope I have succeeded in explaining!

    Laravel 5.1, Win7, Firebird 2.5

    question 
    opened by osmarsouza 5
  • error result numeric number

    error result numeric number

    hello jacquestvanzuydam, i have field price with type data numeric(15,2) and my raw query is

    $data = DB::select("select * from DATA_MASTER('{$param1}','{$param2}')");

    price in the procedure is 10000.00, but the result in php is 1563888.64 ,how to fix it

    opened by dayatfadila7 4
  • Erro driver does not support lastInsertId()

    Erro driver does not support lastInsertId()

    you can help me?

    PDOException in Processor.php line 34: SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

    opened by alexrodcruz 4
  • Cannot run save method

    Cannot run save method

    I create a new Model Object $sale = new Sale(); Then, i updated its fields $sale->amount=.... # and som other update

    When i tried to insert t with $sale->save() I got the following error:

    SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

    opened by selmo47 3
  • I/O error during

    I/O error during

    so i got this error message

    PDOException in Connection.php line 90:
    SQLSTATE[HY000] [335544344] I/O error during "CreateFile (open)" operation for file "/storage/firebird/DBCUBIS_OPRS.FDB"
    

    when i try to test it with

    Route::get('firebird', function()
    {
        $users = DB::connection('firebird')->table('user')->get();
        dd($users);
    });
    

    and in my connection

    'firebird' => [
                'driver'   => 'firebird',
                'host'     => env('DB_HOST_Firebird', 'localhost'),
                'database' => env('DB_DATABASE_Firebird','/storage/firebird/DBCUBIS_OPRS.FDB'),
                'username' => env('DB_USERNAME_Firebird', 'SYSDBA'),
                'password' => env('DB_PASSWORD_Firebird', 'masterkey'),
                'charset'  => env('DB_CHARSET_Firebird', 'UTF8'),
            ],
    

    and i already make sure i never changed any username or password....

    note: laravel version: 5.4 php version: 7.0 using XAMPP in windows 10 Pro 64bit

    opened by t0n1zz 3
  • Composer Issue

    Composer Issue

    • When trying to install it with composer, it fails and return

    [InvalidArgumentException] Could not find a matching version of package sim1984/laravel-firebird. Check the package spelling, your version con straint and that the package is available in a stability which matches your minimum-stability (stable).

    • i cant also locate it in packagist
    • I couldn't open an issue, so i think to pass it here
    opened by selmo47 0
  • Problem with lastInsertId

    Problem with lastInsertId

    I'm working with the driver in an app that is ok. Now i need to extend this app and my first requirement is to install Laravel Passport package, so i follow every step and when i do "php artisan passport:install" i get the error:

    In Processor.php line 34:
    
      SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()
    

    Following the stacktrace i see that the Processor.php file that is using is in vendor\laravel\framework\src\Illuminate\Database\Query\Processors\ and calls lastInsertId php function. I'm stuck in here and don't know what to do to fix this problem.

    opened by lnicotra 4
  • Problems inserting special characters into the database

    Problems inserting special characters into the database

    Hello people,

    I’m having some troubles when inserting especial characters(á,é,í,ó,ú,ñ) into de database. The FB I’m working with is encoded with ‘WIN1254’ charset and I can read properly any register that has especial characters, but when it comes to insert the data, it gets saved with the wrong encoding.

    Note: When saving the data with plain php pdo, it works just fine.

    Anyone has had this problem?

    help wanted 
    opened by HWilliamRS 0
Owner
Jacques van Zuydam
Jacques van Zuydam
A Collections-only split from Laravel's Illuminate Support

Collect - Illuminate Collections Deprecated: With the separation of Illuminate's Collections package, Collect is no longer necessary ?? . We will main

Tighten 1.5k Dec 28, 2022
A Collections-only split from Laravel's Illuminate Support

Collect - Illuminate Collections Deprecated: With the separation of Illuminate's Collections package, Collect is no longer necessary ?? . We will main

Tighten 1.5k Dec 30, 2022
Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

null 686 Dec 28, 2022
A Laravel chat package. You can use this package to create a chat/messaging Laravel application.

Chat Create a Chat application for your multiple Models Table of Contents Click to expand Introduction Installation Usage Adding the ability to partic

Tinashe Musonza 931 Dec 24, 2022
This package provides extended support for our spatie/enum package in Laravel.

Laravel support for spatie/enum This package provides extended support for our spatie/enum package in Laravel. Installation You can install the packag

Spatie 264 Dec 23, 2022
Testbench Component is the de-facto package that has been designed to help you write tests for your Laravel package

Laravel Testing Helper for Packages Development Testbench Component is the de-facto package that has been designed to help you write tests for your La

Orchestra Platform 1.9k Dec 29, 2022
🥳🔐 This package is a Laravel package that checks if an email address is a spammer

This package is a Laravel package that checks if an email address is a spammer. It verifies your signups and form submissions to confirm that they are legitimate.

Endurance, the Martian 15 Dec 19, 2022
GeoLocation-Package - This package helps you to know the current language of the user, the country from which he is browsing, the currency of his country, and also whether he is using it vpn

GeoLocation in PHP (API) ?? ?? ?? This package helps you to know a lot of information about the current user by his ip address ?? ?? ?? This package h

Abdullah Karam 4 Dec 8, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 9 Dec 14, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

Install Install via composer. $ composer require olliecodes/laravel-etched-blade Once installed you'll want to publish the config. $ php artisan vendo

Ollie Codes 19 Jul 5, 2021
A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic! concepts like , Hijri Dates & Arabic strings and so on ..

Adnane Kadri 49 Jun 22, 2022
A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Hussein Feras 52 Jul 17, 2022
laravel-vat is a package that contains the Laravel related wiring code for ibericode/vat

laravel-vat is a package that contains the Laravel related wiring code for ibericode/vat, helping you deal with VAT legislation for businesses based in the EU.

Danny van Kooten 117 Dec 5, 2022
Laravel Backup Panel provides a dashboard for spatie/laravel-backup package.

Laravel Backup Panel Laravel Backup Panel provides a dashboard for spatie/laravel-backup package. It lets you: create a backup (full | only database |

Pavel Mironchik 366 Dec 6, 2022
Laravel package to find performance bottlenecks in your laravel application.

Laravel Meter Laravel Meter monitors application performance for different things such as requests, commands, queries, events, etc and presents result

Sarfraz Ahmed 230 Dec 27, 2022
Laravel 2-Step Verification is a package to add 2-Step user authentication to any Laravel project easily.

Laravel 2-Step verification is a package to add 2-Step user authentication to any Laravel project easily. It is configurable and customizable. It uses notifications to send the user an email with a 4-digit verification code. Laravel 2-Step Authentication Verification for Laravel. Can be used in out the box with Laravel's authentication scaffolding or integrated into other projects.

Jeremy Kenedy 204 Dec 23, 2022
This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.

Laravel FFMpeg This package provides an integration with FFmpeg for Laravel 6.0 and higher. Laravel's Filesystem handles the storage of the files. Lau

Protone Media 1.3k Jan 1, 2023
Laravel Users | A Laravel Users CRUD Management Package

A Users Management Package that includes all necessary routes, views, models, and controllers for a user management dashboard and associated pages for managing Laravels built in user scaffolding. Built for Laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0 and 8.0.

Jeremy Kenedy 393 Nov 28, 2022