Download the PHP package davisshaver/railyard without Composer

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

Railyard

This is the starter kit for new Philly Publishing Company sites. It lays out the tracks for local development and new site creation. Proprietary code and secrets can be included on a per site basis using Composer or direct commits.

Local development

Prerequisites

These tools should be installed on your local system before you begin.

Local dev workflow

New sites are ready to go from the project root. See .env.sample for keys supported in .env.

You can use Lando, Local by Flywheel, or another local dev solution.

You may want to run wp db import ./private/local/railyard.sql.gz next. This populates the database to simulate a typical Philly Publishing site. Doing this with a production database may take some time. If you are using a production database, you may need to reset a password at this point. You can do this with wp user update admin --user_pass="PASSWORD".

Tip: We ignore the file notes.md in the repository if you would like to stash commands here for use in the future.

Existing site import

Here are some tips for cleaning up existing sites.

  1. Install the Revisions command for WP CLI and then delete. See docs for more options..

  2. Delete transients.

  3. Delete pending comments and pingbacks.

In lieu of a WP CLI command, Sequel Pro can be used to delete pingbacks/trackbacks manually.

  1. Profile largest tables.

For your prefix (usually wp_), we need to keep the following tables:

Keep an eye out for extra tables, you may be able to delete them.

  1. Transferring files to S3.

Before you begin, you'll need the following:

On third-party servers we want to be extremely cautious of leaving the environment undisturbed.

You can short-circuit the profile configured to AWS by exporting your own key/secret to the environment:

Now if you run aws s3 ls you should see the S3 bucket listed.

Assuming a standard WordPress installation, running this command from the app root will begin a sync process to your bucket:

Now we can unset our environment variables. It's like we were never even here!

If you have setup and activated S3 Uploads, image files should load at this point. You may also want to sync all or part of S3 bucket to your server for redundancy.

For local development, S3 Uploads suggests the following:

While it's possible to use S3 Uploads for local development (this is actually a nice way to not have to sync all uploads from production to development), if you want to develop offline you have a couple of options.

  1. Just disable the S3 Uploads plugin in your development environment.
  2. Define the S3_UPLOADS_USE_LOCAL constant with the plugin active.

Option 2 will allow you to run the S3 Uploads plugin for production parity purposes, it will essentially mock Amazon S3 with a local stream wrapper and actually store the uploads in your WP Upload Dir /s3/.

At this point, you may still have an unnecessarily large uploads folder. Here are some strategies for reducing the size.

Using Node S3 Utils, we can list the uploads that have the mark of being auto-generated by WordPress. Specifically containing the last bit of ####x####.jpg.

However this function would need to be run repeatedly for the images to be cleared.

You may also want to double check that all posts have a featured image. The featured image features was introduced in version 2.9 (December 18th, 2009). Install Run Command's Assign Featured Image package and then preview & run as follows:

  1. Removing subscribers.

We can use WP CLI to lookup subscribers and delete subscribers without posts.

The 4 here is the admin ID, which can be obtained with somthing like wp user list --role=administrator --field=ID. Comma separate multiple administrator ID's to ignore.

Theme

Terminal is the required theme for Philly Publishing publishers.


All versions of railyard with dependencies

PHP Build Version
Package Version
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 davisshaver/railyard contains the following files

Loading the files please wait ....