Skip to content

SplashSync/Php-Core

Repository files navigation

N|Solid

Splash Php-Core

Core library for building Splash Sync connectors in PHP.

What is Splash Sync?

Splash Sync is a universal data synchronization framework. Connectors built with this library can exchange data (Products, Orders, Customers, etc.) between any application and the Splash ecosystem.

Features

  • Base classes for Objects and Widgets
  • Fluent API for field definitions
  • Helpers for complex fields (prices, images, files)
  • Auto-discovery of fields and getters/setters with IntelParserTrait
  • Object extensions and filters

Installation

composer require splash/phpcore

Requirements

  • PHP 7.4+ (8.x recommended)
  • Extensions: xml, soap, simplexml, xmlwriter, libxml

Documentation

See the full documentation for:

Quick Example

<?php

namespace Splash\Local\Objects;

use Splash\Core\Models\AbstractObject;
use Splash\Core\Models\Objects\IntelParserTrait;

class ThirdParty extends AbstractObject
{
    use IntelParserTrait;
    use ThirdParty\CrudTrait;
    use ThirdParty\CoreTrait;

    protected static string $name = "Third Party";
    protected static string $description = "Customer or Supplier";
    protected static string $ico = "fa fa-user";
}

Ecosystem

Package Description
Toolkit Development environment (CLI/Docker)
Php-Bundle Symfony integration
OpenAPI REST API connectors
Metadata PHP 8 attributes support

License

This module is part of SplashSync project.

About

Splash Core Module for PHP Applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published