Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

DEPRECATED Boilerplate for a new composer package (PHP 7.2)

License

Notifications You must be signed in to change notification settings

ebln/template-php-package-7.2

Repository files navigation

DEPRECATED as PHP 7.2 is beyond »End of live«

Template for composer packages (PHP 7.2 legacy edition)

Quick start:

NEW_REPOSITORY_NAME=FOOBAR; \
git clone https://github.com/ebln/template-php-package-7.2.git ${NEW_REPOSITORY_NAME} && cd ${NEW_REPOSITORY_NAME}

git remote set-url origin git@github.com-ebln:ebln/${NEW_REPOSITORY_NAME}.git
git push --set-upstream origin master

Consider

Setup

  • Clone this boilerplate
    • NEW_PROJECT_NAME=FOOBAR; \
      git clone https://github.com/ebln/template-php-package-7.2.git ${NEW_PROJECT_NAME} && cd ${NEW_PROJECT_NAME}  
  • Setup git
    • Create a new (origin) repository
      • Define its name as a variable: export REPOSITORY_NAME=FOOBAR;
    • Option: start all over
      1. rm -rf .git && git init # to flush boilerplate's git history
      2. Configure git for your privacy demands
        git remote remove origin; \
        git config --list; \
        git config user.email "sokolow@net.invalid"; \
        git config user.name "Распутин"; \
        git config --list --show-origin;
      3. Add origin
          git remote add origin git@github.com-ebln:ebln/${REPOSITORY_NAME}.git
      4. as this is a new repository, run: ``
            git add -A && git commit -m 'Initial commit'
    • Option: keep the history from the template
      • Update origin
          git remote set-url origin git@github.com-ebln:ebln/${REPOSITORY_NAME}.git
  • Set upstream & push
    git push --set-upstream origin master

About

DEPRECATED Boilerplate for a new composer package (PHP 7.2)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages