Download the PHP package thinkneverland/porter without Composer

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

Porter Package Documentation

Overview

The Porter package allows for exporting, importing, and cloning of database and S3 bucket content, providing flexible ways to manage data for your Laravel applications.

Installation

You can install the package via composer:

Run the install command

This command will publish the configuration file, allow you to set S3 credentials, and apply necessary configurations.

During installation, you'll be prompted to provide S3 credentials for both primary and alternative (secondary) S3 buckets. These will be stored in your .env file if not already set.

Configuration

The Porter package uses a configuration file located at config/porter.php after running the install command.

If you wish to configure Porter manually instead of using the install command, you can do so by editing the config/porter.php file.

S3 Storage Settings for Cloning

Primary and alternative S3 buckets for cloning operations can be configured in the porter.php config file:

Make sure to set these values in your .env file if you wish to enable exporting to an alternative S3 bucket.

IAM Policy Updates for S3 Multipart Uploads

Due to the addition of multipart uploads to S3, your IAM policies need to be updated to support this functionality. Ensure the following actions are allowed in your IAM policies for both the primary and alternative S3 buckets:

Make sure to replace your-primary-bucket-name and your-alternative-bucket-name with the appropriate bucket names. This policy ensures that Porter can manage multipart uploads effectively, which is particularly important for handling large file transfers.

Exporting Database

The porter:export command exports the database into an SQL file. This can be stored locally or on the primary or alternative S3 bucket, depending on your configuration.

Usage:

Example with flags:

Flags:

Example Output:

Importing Database

The porter:import command allows you to import a database SQL file from local or S3 storage.

Usage:

Example: Import from S3

Example: Import from Local File

Cloning S3 Buckets

The clone-s3 command allows you to clone content between S3 buckets as defined in your configuration.

Usage:

This will clone files from the source bucket to the target bucket as defined in your .env configuration, including support for both the primary and alternative buckets.

Model-based Configuration

Instead of using the config file, randomization and keeping specific rows for tables are now done on the model level.

You can also ignore specific tables directly in the model to prevent them from being exported.


All versions of porter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
aws/aws-sdk-php Version ^3.0
laravel/framework Version ^10.0|^11.0
league/flysystem-aws-s3-v3 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 thinkneverland/porter contains the following files

Loading the files please wait ....