PHPackages                             scottjs/helper-scripts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. scottjs/helper-scripts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

scottjs/helper-scripts
======================

A collection of helper scripts for common development tasks.

1.0.2(10y ago)31.4k1MITShell

Since Apr 3Pushed 10y ago2 watchersCompare

[ Source](https://github.com/scottjs/helper-scripts)[ Packagist](https://packagist.org/packages/scottjs/helper-scripts)[ RSS](/packages/scottjs-helper-scripts/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (9)Used By (1)

Helper Scripts
==============

[](#helper-scripts)

When developing locally on an active project using a version control system, it's likely that the main uploads folder is not bundled within your repository, meaning that content managed uploads will not load locally. These scripts allow you to quickly generate a local `.htaccess` file in your configured uploads directory and will redirect all requests to the remote server instead.

This repository is intended to host a collection of other scripts to carry out common development tasks in the future. It is a work in progress.

*Disclaimer: These scripts and commands were originally created for use internally within our development team to speed up common, repetitive tasks. However, they may be of some use to others. Feel free to use in your own projects, your mileage may vary.*

Requirements
------------

[](#requirements)

- Composer
- PHP &gt;= 5.3.0
- A local development environment, such as Vagrant.

Notes
-----

[](#notes)

- These scripts require a .env config file in the project root. If you're using WordPress, you can use [scottjs/wp-dotenv](https://github.com/scottjs/wp-dotenv) to allow WordPress to share the same .env file and avoid maintaining two config files.
- This script was designed with WordPress in mind, however it should work with other projects, such as Laravel 5.

Installation
------------

[](#installation)

Run `composer require "scottjs/helper-scripts:1.*" --dev` from the root of your project.

Alternatively, you can manually add `"scottjs/helper-scripts": "1.*"` to your `composer.json` file:

```
"require-dev": {
	"scottjs/helper-scripts": "1.*"
}

```

Then add the following scripts to your `composer.json` file:

```
"scripts": {
	"remote-uploads-enable" : [
		"vendor/scottjs/helper-scripts/remote-uploads.sh enable"
	],
	"remote-uploads-disable" : [
		"vendor/scottjs/helper-scripts/remote-uploads.sh disable"
	]
}

```

Run the `composer update` command from the root of your project.

Create a `.env` file in the root of your project and add/update the following configuration options:

```
DOMAIN_REMOTE=www.example.com
APP_DOCROOT=/public
APP_UPLOADS=/wp-content/uploads

```

Usage
-----

[](#usage)

From the root of your project, you will be able to run the following composer commands:

- ***composer remote-uploads-enable*** - This command will generate a local .htaccess file in your configured uploads directory and will redirect all requests to the remote server instead. This requires `DOMAIN_REMOTE`, `APP_DOCROOT` and `APP_UPLOADS` to be set in the .env file. It's recommended to ignore this .htaccess file from your project repository if your uploads directory is not already ignored.
- ***composer remote-uploads-disable*** - A convenient helper command to remove the .htaccess file created by the command above just in case you find it causes issues or is no longer needed.

Config
------

[](#config)

See below for an explanation of each configuration option used within the .env file.

- ***DOMAIN\_REMOTE*** - It should point to your remote or production environment (if available) and not include http:// or trailing slashes. Example: `www.example.com` or `subdomain.example.com`.
- ***APP\_DOCROOT*** - It should be relative to your project root folder and point to where the document root is configured. It should start with a slash and not include a trailing slash. Leave blank if not applicable. Example: `/public`.
- ***APP\_UPLOADS*** - It should point to the URL where remote uploads are located relative to `DOMAIN_REMOTE`. It should start with a slash and not include a trailing slash. Example: `/wo-content/uploads`.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

3776d ago

Major Versions

0.3.2 → 1.0.02016-04-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/994732?v=4)[Scott Salisbury](/maintainers/scottjs)[@scottjs](https://github.com/scottjs)

---

Top Contributors

[![scottjs](https://avatars.githubusercontent.com/u/994732?v=4)](https://github.com/scottjs "scottjs (28 commits)")

### Embed Badge

![Health badge](/badges/scottjs-helper-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/scottjs-helper-scripts/health.svg)](https://phpackages.com/packages/scottjs-helper-scripts)
```

###  Alternatives

[sitegeist/archaeopteryx

The missing link editor for Neos

2589.8k3](/packages/sitegeist-archaeopteryx)[lukasss93/minecraft-server-status

PHP library to check Minecraft Servers Status

425.1k](/packages/lukasss93-minecraft-server-status)[phpcfdi/sat-catalogos

Catálogos de SAT para CFDI 3.3, CFDI 4.0 y Nómina 1.2

307.3k30](/packages/phpcfdi-sat-catalogos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
