LoginSignup
3

More than 5 years have passed since last update.

composerに対応したgithubリポジトリの作成

Posted at

前提

  • Packagistへの登録は行わない。
    • 現状、登録しないと困った事が発生します。(下の方の困った事参照)

ライブラリ側

  1. composer.josnを作成する
  2. クラスとかもろもろ作成
  3. tagをつける

作成したgithubリポジトリはこちら

https://github.com/mapyo/composer_lib_test

ライブラリを使う側

  • composer.jsonを作成など

作成したgithubリポジトリはこちら
https://github.com/mapyo/composer-test

困った事

どうやらpackagistに登録しないと、
composerのクラスローダー経由で利用できない。
なので、composer.jsonで指定する。
以下のような感じ。

"autoload": {
  "psr-4": {
    "composer_lib_test\\": "vendor/mapyo/composer_lib_test/src"
  }
}

この記述を書かなくていい方法をご存知の方、教えてください〜

thanks

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3