结合 Github 发布 Package
打赏作者

daimingkang

看完了看完了

lnamphp

不错的视频

假如_丶

https://packagist.org/packages/submitcheck 提示:

The vendor is already taken by someone else. You may ask them to add your package and give you maintainership access. If they add you as a maintainer on any package in that vendor namespace, you will then be able to add new packages in that namespace. The packages already in that vendor namespace can be found at laravel

这啥情况…

JellyBool 回复 假如_丶

你是用别人的 package 来注册么

假如_丶 回复 JellyBool

我按照视频做的…是不是这个问题?那我应该修改那块?

JellyBool 回复 假如_丶

额。。。换成你自己名字的 package 就好了啊

young2 回复 假如_丶

修改composer.json里的name, vender名字(即前缀)改一个不容易跟别人重复的

Jarvis5780

按要求敲了下,不能composer安装
composer require jarvis/md5
[InvalidArgumentException]
Could not find package jarvis/md5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

JellyBool 回复 Jarvis5780

你有发布你的 package 么?或者是你的 package 有发布版本?

maokeyang 回复 JellyBool

突然好了。。。。 没事了

Ruanjun 回复 maokeyang

我也是这样你是怎么解决的

carsonlius 回复 Ruanjun

发布版本 或者composer require your/package dev-master

xinhaonaner

按照视频都是ok的,唯独更新一直不正常


Packagist这里有个红色感叹号
请问是 什么原因呢?

JellyBool 回复 xinhaonaner

没有配置正确,你的 token 有写对么?

xinhaonaner 回复 JellyBool

token是对的哈,很奇怪,不知道是什么原因

JellyBool 回复 xinhaonaner

你应该点进去,看看一个 test 的 request 返回什么数据给你

xinhaonaner 回复 JellyBool

返回是ok的,上面我已经截图了嘻嘻

Ruanjun
E:\phpStudy\PHPTutorial\WWW\pluck-test>composer show ruanlianjun/aliyunlive --all


  [InvalidArgumentException]
  Package ruanlianjun/aliyunlive not found

前面一直ok,但是当我require的时候就出现这个问题,请问是什么原因呢

Ruanjun

E:\phpStudy\PHPTutorial\WWW\pluck-test>composer require ruanlianjun/aliyunlive


  [InvalidArgumentException]
  Could not find package ruanlianjun/aliyunlive at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowe
st] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

JellyBool 回复 Ruanjun

你有发布到 packagist 么?或者你用的 composer 中国镜像?

carsonlius 回复 Ruanjun

加dev-master

BallOon

求助,教主
我按照教程开发测试,多次检测后还是这个问题
E:>composer require encone/hasher

[InvalidArgumentException]
Could not find a matching version of package encone/hasher. Check the packa
ge spelling, your version constraint and that the package is available in a
stability which matches your minimum-stability (stable).
不知道是哪个地方出错了,找不到包

JellyBool 回复 BallOon

你有发布你的 package 到 packgist 么?

BallOon 回复 JellyBool

解决了,git tag 1.0 -a 命令 那个文件,
Release version 1.0
这句话放在文件第一行不行,换到注释以下就行了,不知道是为什么