Download the PHP package shudd3r/skeleton-example without Composer
On this page you can find all versions of the php package shudd3r/skeleton-example. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shudd3r/skeleton-example
More information about shudd3r/skeleton-example
Files in shudd3r/skeleton-example
Package skeleton-example
Short Description Package skeleton demo using Shudd3r/Skeletons
License MIT
Informations about the package skeleton-example
Shudd3r/Skeleton-Example
Package skeleton demo using Shudd3r/Skeletons
Skeleton package built to illustrate how it can be managed by script that uses shudd3r/skeletons library.
Installation
It is recommended to use it globally as an exacutable application - downloaded example-skeleton.phar
archive from the latest release
asset files and placed it in one of the operating system's PATH directories.
More on Windows executable .phar files here.
During deployment process or for a small number of projects you can install this package with Composer as one of package's dev dependencies:
Note that using this method will require you to download this package for each project using the skeleton.
Basic Usage
To use skeleton application, run the script from the root directory of your project.
If you installed it globally as example-skeleton.phar and made it executable by your operating system,
you can simply run example-skeleton instead of vendor/bin/example-skeleton in the examples below.
-
Display help message with usage details (
helpcommand is optional): -
Initialize package with skeleton files providing template replacement values through interactive shell:
-
Validate project's consistency with skeleton (can be added to CI workflow):
-
Update placeholders through interactive shell or using provided argument:
- Synchronize files with template:
Windows executable
To run the script globally from console with simple example-skeleton command:
-
You need to place downloaded
.pharfile in one of (executable) PATH directories or add new one to directory list in %PATH% environment variable. You can change environment variables by running: - Windows doesn't support shebang parsing, so files that can't be executed directly
need to be assigned to their interpreter manually. The easiest way to make concrete
.pharfile executable is to create.batrunner file with the following command: