Download the PHP package azaharizaman/nexus-import without Composer

On this page you can find all versions of the php package azaharizaman/nexus-import. 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 nexus-import

Nexus\Import

PHP Version [Framework Agnostic]() [Status]()

Framework-agnostic data import engine with transformation, validation, and transaction management.

The Nexus\Import package provides a high-integrity, modular import system for processing CSV, JSON, XML, and Excel files with configurable field mappings, data transformations, validation rules, duplicate detection, and flexible transaction strategies.


📚 Table of Contents


Features

Installation

Quick Start

Core Components

1. Value Objects

ImportFormat

ImportMode

ImportStrategy

FieldMapping

2. Built-in Transformation Rules

Category Rule Description Example
String trim Remove whitespace " Hello ""Hello"
upper Uppercase "hello""HELLO"
lower Lowercase "HELLO""hello"
capitalize Capitalize words "hello world""Hello World"
slug URL-safe slug "Hello World""hello-world"
Type to_bool Convert to boolean "yes"true
to_int Convert to integer "42"42
to_float Convert to float "3.14"3.14
to_string Convert to string 42"42"
Date parse_date:format Parse date "2024-01-15" with format Y-m-d
date_format:format Format date Format to Y-m-d H:i:s
Utility default:value Fallback value null"N/A"
coalesce:val1,val2 First non-null null, "default""default"

3. Validation Rules

4. Import Handler

Implement ImportHandlerInterface to define domain-specific persistence logic:

5. Transaction Manager

Implement TransactionManagerInterface for database transaction management:

Transaction Strategies

TRANSACTIONAL Strategy

BATCH Strategy

STREAM Strategy

Error Handling

Error Severity Levels

Accessing Errors


Available Interfaces

The package defines 10 core interfaces for dependency injection:

Primary Interfaces

Interface Purpose Implementation Location
ImportManagerInterface ❌ Not provided - Use concrete ImportManager Consumer defines if abstraction needed
ImportParserInterface Parse import files (CSV, JSON, XML, Excel) Package provides CSV/JSON/XML; Consumer implements Excel
TransactionManagerInterface Database transaction management Consumer implements (Laravel, Symfony, etc.)
ImportHandlerInterface Domain-specific persistence logic Consumer implements per entity type
ImportProcessorInterface Process import with strategy enforcement Package provides ImportProcessor

Engine Interfaces

Interface Purpose Provided Implementation
TransformerInterface Apply transformation rules to data DataTransformer
FieldMapperInterface Map source fields to target fields FieldMapper
ImportValidatorInterface Validate import definitions DefinitionValidator
DuplicateDetectorInterface Detect duplicate records DuplicateDetector

Optional Interfaces

Interface Purpose Required?
ImportAuthorizerInterface Authorization checks ❌ Optional - Pass null if not needed
ImportContextInterface Tenant/context management ❌ Optional - Pass null if not needed

See full API documentation: docs/api-reference.md


Integration Examples

Laravel Integration

See complete integration guide: docs/integration-guide.md

See working examples: docs/examples/


Advanced Usage

Custom Transformations

Auto-Mapping

Duplicate Detection


Integration with Atomy (Laravel)

1. Create ExcelParser

2. Register in Service Provider


Architecture

The Nexus\Import package follows strict framework-agnostic principles:

Package Structure


Testing

Running Package Tests

Current Test Status

Coverage: 0% (Tests pending implementation)
Planned Tests: ~65 tests (50 unit, 15 integration)
Target Coverage: 90%+

See test documentation: TEST_SUITE_SUMMARY.md

Writing Custom Tests


Documentation

Package Documentation

Project Documentation


License

MIT License. See LICENSE file for details.


Contributing

This package is part of the Nexus ERP monorepo. See main repository for contribution guidelines.


Version: 1.0.0
Status: Production Ready
Maintained By: Nexus Development Team
Last Updated: November 25, 2024


All versions of nexus-import with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^3.0
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 azaharizaman/nexus-import contains the following files

Loading the files please wait ...