Download the PHP package techparse/offline-sync without Composer

On this page you can find all versions of the php package techparse/offline-sync. 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 offline-sync

NativePHP Offline Sync & Backup

PHP Version Laravel Version NativePHP Version Live Demo

Offline-first synchronization plugin for NativePHP Mobile applications.

Stop fighting with offline data. This plugin handles queuing, sync, and conflicts so you can focus on building features. Works out-of-the-box with zero native code required.


✨ Features


📋 Requirements


🚀 Installation

1. Install via Composer

2. Register the Plugin

3. Publish Configuration

4. Run Migrations

5. Configure Your API

Edit .env:


📖 Quick Start

1. Add Syncable Trait to Your Models

2. Map Resources in Config

Edit config/offline-sync.php:

3. Use It!


🎯 Usage

Automatic Syncing

With the Syncable trait, all create/update/delete operations are automatically queued:

Manual Syncing

Queue Management

Artisan Commands


⚔️ Conflict Resolution

Configure in config/offline-sync.php:

Available Strategies

Strategy Description Best For
server_wins Server data always overwrites local Critical data, auth
client_wins Local data always overwrites server User preferences
last_write_wins Newest timestamp wins Most use cases
merge Intelligent field-level merge Complex data

🔐 Security

Authentication

The plugin is auth-agnostic — it does not manage tokens or credentials. Your application is responsible for authentication. To forward an auth header on every sync request, set offline-sync.security.headers at runtime (e.g. in your AppServiceProvider):

This works with any auth system: Laravel Sanctum, Passport, API keys, etc.

HTTPS Enforcement


📡 Backend Setup

Routes

Add to routes/api.php:

Controller

Use the included SyncController or extend it for custom logic.


🔔 Events

Listen to sync events in your application:

Available Events


⚙️ Configuration

See config/offline-sync.php for all options:


📱 Native Platform Support

Android (Kotlin)

iOS (Swift)

All native code is included. No manual native development required.


🧪 Testing

Run the test suite:

Or with coverage:


📚 Documentation


🤝 Support


📄 License

This software is open source, released under the MIT License. See LICENSE for details.


🙏 Credits

Built with ❤️ for the NativePHP community.


📝 Changelog

See CHANGELOG.md for version history.


Made by Techparse | Website | Twitter


All versions of offline-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.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 techparse/offline-sync contains the following files

Loading the files please wait ...