Download the PHP package dsuurlant/takeout-redate without Composer

On this page you can find all versions of the php package dsuurlant/takeout-redate. 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 takeout-redate

Takeout Redate CLI

A Symfony Console application to recursively go through your Google Photos Takeout archive and rewrite the file dates according to the accompanying metadata json.

Requirements

Recommended Usage with Google Photos Takeout

When exporting your Google Photos archive, the ZIP files strip the original creation and modification dates from your photos and videos. However, these dates are preserved in the accompanying JSON metadata files. This tool restores those dates programmatically.

Overview

The process involves three main steps:

  1. Obtain and extract your Google Photos Takeout archive
  2. Consolidate all files into a single directory structure
  3. Restore dates using this tool

Step 1: Obtain Your Archive

  1. Request your Google Photos archive from Google Takeout
  2. Download all ZIP files before they expire (archives have expiration dates)
  3. Choose a storage location:
    • Recommended: Local device or NAS for faster processing
    • Not recommended: Directly to another cloud service (too slow)

Important: If you do not download the entire archive before expiration, a newly requested Takeout archive will not have the same file distribution across different ZIPs, resulting in potential data loss. Make sure to download your entire archive before the expiration date.

Step 2: Extract and Consolidate

  1. Extract all ZIP files from your download

  2. Consolidate the extracted directories.

    On macOS: If files are split into multiple "Takeout 1", "Takeout 2", etc. directories, use this script to merge them:

    On other platforms: Files may automatically merge into a single directory, or you can manually combine them.

Note: Google may distribute metadata JSON files across different ZIP archives, meaning a photo's metadata might not be in the same archive as the photo itself. You must have the entire archive extracted and consolidated before running the date restoration tool.

Step 3: Restore Dates

Google exports photos organized by year:

Recommended approach: Process one year at a time to avoid timeouts with large archives.

For each year directory:

  1. Set your base directory (optional, for convenience):

  2. Test with dry-run first:

  3. If no errors, run for real and optionally delete metadata files after processing:

  4. Repeat for each year directory in your archive

Happy archiving and good luck moving away from Google!

Installation

As PHAR

Download the compiled PHAR file and make it executable:

Or use it directly:

Usage

Development

License

MIT


All versions of takeout-redate with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/console Version ^7.3
symfony/process Version ^7.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 dsuurlant/takeout-redate contains the following files

Loading the files please wait ...