Download the PHP package craftsmancoding/repo-starter without Composer

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

repo-starter

This is a demonstration MODX package repository compatible with Repoman intended for use as a starter kit for building MODX packages.

Installation

To download this package as the basis for your Repoman project, use composer create-project:

composer create-project craftsmancoding/repo-starter --prefer-dist

This should pull down the package to your local computer where you may begin altering it.

If you are not familiar with Composer, see the section below on Installing Composer.

Setup

Once you have downloaded the package, you'll want to modify the composer.json to match your vendorname (usually your Github or Bitbucket username), your packagename (this will usually correspond to the MODX namespace). Delete any directories or parts that you do not need (e.g. remove the elements/plugins/ directory if your package doesn't need to install any plugins. These folders are included in the repo-start solely to provide examples.

For version 1, you will need to download the Repoman utility separately: https://github.com/craftsmancoding/repoman See https://github.com/craftsmancoding/repoman/wiki/Installation for instructions on installing Repoman.

Once you have modified the repo-starter by deleting elements you don't want/need and you're ready to get your package contents synced up with MODX so you can start developing, you need to use Repoman to install your package:

php repoman install /path/to/your/package

You can adjust the paths to the repoman utility or to your package directory according to your environment.

Editing composer.json

Update the composer.json file to reference your custom vendor and package name.

Configuring Git

Once you're ready to start version-controlling your project, you need to tweak a couple things to decouple this starter repo from its roots.


Installing Composer

If it's your first attempt at using Composer, then we sympathize: it's not always the easiest thing to jump into.
It's usually easiest to download the Composer PHAR file and use that to execute commands. See https://getcomposer.org/download/ for examples of downloading the .phar bundle, e.g.

curl -sS https://getcomposer.org/installer | php

or

php -r "readfile('https://getcomposer.org/installer');" | php

Once you have the composer.phar file, modify the create-project command to reference it, e.g.:

php composer.phar create-project craftsmancoding/repo-starter --stability=dev

All versions of repo-starter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 craftsmancoding/repo-starter contains the following files

Loading the files please wait ....