Download the PHP package yajra/laravel-sql-loader without Composer

On this page you can find all versions of the php package yajra/laravel-sql-loader. 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 laravel-sql-loader

Oracle SQL*Loader for Laravel

Continuous Integration Static Analysis Latest Stable Version Total Downloads License

A Laravel package that allows you to easily load data into Oracle database using sqlldr.

Requirements

Prerequisites

Installation

You can install the package via composer:

Quick Start

Below is a quick example of how to use the package:

Execution Mode

The default execution mode is Mode::APPEND. The package supports the following execution mode:

Date Formats

The SQL*Loader default date format is YYYY-MM-DD"T"HH24:MI:SS."000000Z" to match Laravel's model date serialization. You can change the date format using the dateFormat method.

Available Methods

Options

You can pass additional options to the sqlldr command using the options method.

Input File(/s)

You can set the input file to use for the SQL*Loader command using the inFile method.

You can also set multiple input files.

Mode

You can set the execution mode using the mode method.

Into Table

You can set the table to load the data into using the into method. This method accepts the following parameters:

With Headers

Using withHeaders will skip the first row of the CSV file.

[!IMPORTANT]

  1. withHeaders must be called before the into method.
  2. This method assumes that the headers are the same as the table columns.
  3. Non-existent columns will be flagged as FILLER.
  4. Date headers will be automatically detected and data type is appended in the control file.
  5. Date values must follow the default date format. If not, use the dateFormat method.
  6. If the headers are different from the table columns, you should define the columns in the into method.

Building a CSV File from Eloquent Collection

Loading CSV File with Headers

Load users from oracle to backup database connection.

Wildcard Path with Headers

When using a wildcard path, the first file is assumed to contain the headers. The succeeding files should not have headers or it will be reported as a bad record.

Constants

In some cases, we need to insert constant values to the table. You can use the constants method to set the constant value.

[!IMPORTANT] constants must be called before the into method.

Connection

You can set the connection name to use for the SQL*Loader command using the connection method.

Disk

You can set the disk to use for the control file using the disk method.

Logging

You can get the logs of the execution using the logs method.

Custom Control File

You can use a custom control file by passing the control file name to the as method.

Execute

You can execute the SQL*Loader command using the execute method.

You can also set the execution timeout in seconds. Default is 3600 seconds / 1 hr.

Execution Result

You can check if the execution was successful using the successfull method.

Process Result

You can get the process result using the result method.

Using array as data source

You can use an array as a data source by using begindData method.

Available Configuration

You can publish the configuration file using the following command:

Connection Config

You can set the connection name to use for the SQL*Loader command.

SQL*Loader Path Config

You can set the path to the SQL*Loader executable.

Disk Config

You can set the disk to use for the control file.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-sql-loader with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-oci8 Version >=3.0.1
ext-pdo Version *
illuminate/database Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
illuminate/filesystem Version ^10.0|^11.0
yajra/laravel-oci8 Version ^10.6|^11.3
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 yajra/laravel-sql-loader contains the following files

Loading the files please wait ....