Download the PHP package drlopes/template-sync without Composer

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

Template Sync

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Laravel package that keeps your project in sync with the template repository it was created from. Run one command to pull in the latest changes from your template — conflicts are caught, local overrides are preserved, and a backup branch is created before every sync.

Installation

Publish the config file:

Usage

1. Connect to your template

Run the interactive setup command once. It prompts for your template repository URL and preferences, writes config/template-sync.php, and adds the git remote:

You will be asked for:

2. Sync template changes

Pull in the latest changes from the template at any time:

The command will:

  1. Add the template remote if it is missing
  2. Create a backup branch (e.g. backup/before-template-update-2025-05-16) so you have a restore point
  3. Fetch and merge the template branch
  4. If the merge conflicts, pause with the merge in progress so you can resolve the conflicts yourself (see below)
  5. If the merge succeeds, restore any excluded paths to their local versions, then commit

Resolving conflicts

When the merge runs into conflicts, the command stops and leaves the repository in a mid-merge state — your working tree contains the conflict markers, just like a normal git merge. You then have two options:

Finish the sync — fix the conflicts in your editor, stage the resolved files, and continue:

--continue re-applies your excluded paths, creates the sync commit, and cleans up the backup branch if delete_on_success is enabled.

Abort the sync — discard the merge and return to where you were:

--abort runs git merge --abort and leaves the backup branch in place so you can still inspect it.

While a sync is paused, re-running php artisan template:update without a flag will refuse to start a new sync and remind you to use --continue or --abort.

Configuration

Excluded paths

Use excluded_paths for files your project has customised and should never receive template updates. After every successful merge, those files are restored to your local version before the commit is made, so template changes to them are silently dropped.

Backup branch

Before every sync, a branch named {prefix}-{date} (e.g. backup/before-template-update-2025-05-16) is created at your current HEAD as a safety net. It is preserved whenever the sync pauses on conflicts or is aborted, so you can always git checkout it to get back to your previous state. Set delete_on_success to false to keep it even after a clean sync.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of template-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.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 drlopes/template-sync contains the following files

Loading the files please wait ...