packagist

Where to register autoload when the vendor is not managed with composer in Symfony 2.1?

孤人 提交于 2019-12-31 12:56:52
问题 I'm using symfony 2.1 and I want to add a library to vendors. The library do not exists in packagist. I can't manage it with composer. When I install bundles or others vendors through composer, it manage autoload for me. But where to register autoload when the vendor is not managed with composer? 回答1: You can add libraries to composer that are not in packagist. You must add them in the repositories array of your composer.json file. Here's how to load a github repository that has a composer

Is Packagist the only library/repository of packages that Composer natively pulls from?

余生颓废 提交于 2019-12-24 17:21:13
问题 Is Packagist (https://packagist.org/) the only repository/library of packages that Composer pull from out of the box? I know that Composer can be configured to point to other libraries of packages, including in-house setups using Satis or other tools. But I am curious if it will scan other libraries, such as Packalyst. I have been doing a lot of searching and have not found a clear answer to this question. I highly suspect that Packagist is the only library that Composer connects to by

Composer is not reading my local Satis packages.json file

倖福魔咒の 提交于 2019-12-24 15:27:13
问题 I have setup my local SVN repo to hold all external repos ( company policy ), using Satis I've created the packages.json file. when I run composer update how do I tell it to use my custom packages.json file and pull from my local repo instead of externals? This is a blurb from the packages.json file on where my svn repos are: "source": { "type": "svn", "url": "http://blah/packagist/foo/bar", "reference": "/tags/2.3.0/@38" } but the url I would use to check this project out would be: http:/

How to set the install directory for a package on the package, instead of on the project?

家住魔仙堡 提交于 2019-12-24 06:42:15
问题 I am working on creating a custom composer package. The composer package must install to a custom folder instead of vendors/ directory I want it to be installed in packages/. This is how my composer.json looks like: { "name": "demo/contentfeed", "description": "This is yet another Lumen composer package wrapper", "type": "lumen-plugin", "version": "1.1.5", "keywords": ["demo","lumen","drupal"], "homepage": "https://github.com/gauravmehrasrijan/lumen-feeds", "require": { "composer/installers":

How to force a package to be installed?

寵の児 提交于 2019-12-22 03:54:25
问题 I'm trying to install the following package through composer : https://packagist.org/packages/cartalyst/sentry#dev-feature/laravel-5 When I do: composer require cartalyst/sentry dev-feature/laravel-5 I always receive this error: [InvalidArgumentException] Could not find package dev-feature/laravel-5 at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability If I change minimum-stability to dev it will still complain. However, if I install dev

Working on forked GitHub repository through Composer

假如想象 提交于 2019-12-20 03:39:05
问题 I hope my question is not too vague, but can't get a proper answer by searching. I have the following situation; We are working on a project and have certain dependencies installed through Composer. One of these dependencies is quite outdated and requires some fixes and additions. I have forked this repo on GitHub and added it to Packagist. To work on the code, I need it running in my project and edit from there to see if my changes work, but it is in the vendor folder, where it is installed

thinkPHP5引入endroid/qr-code类库生成指定二维码

泪湿孤枕 提交于 2019-12-19 11:34:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我在项目开发中需要使用到的常见的一些类库,基本都是Packagist / Composer 中国全量镜像上找到,然后使用composer直接安装。 废话不多说开始吧! 首先,打开https://packagist.org/该网址, 在搜索框中输入endroid/qr-code, 点击第一个链接进入, 下滑找到这句话: $ composer require endroid/qr-code 下载到本地,我这里以c盘下载为例: 加载的文件为vendor,下面的子目录如下 我们需要用到的是endroid目录。由于我们是在thinkPHP5项目下使用,所以你在你的TP5根目录下composer该类库,会自动加载到vendor目录下, 我们在项目代码中可以直接通过use关键字引用使用,贴上代码 <?php namespace app\subsite\controller; use Endroid\QrCode\QrCode; class Index extends Base { function _initialize() { parent::_initialize(); } /* * 生成二维码图片 */ public function qr_code() { $link = 'http://'.$_SERVER[

How do I change the packagist sticker for stable release?

一世执手 提交于 2019-12-18 12:16:47
问题 This is my open source code I wrote. https://github.com/simkimsia/UtilityBehaviors/blob/master/README.mdown I have a No Stable Release from packagist.org How do I go about having a Stable Release sticker from packagist ? 回答1: You have to tag your code with a version number. git tag -a 0.0.0 That will declare the first stable version. If you worry about an all-zero version number, you can start with something like 0.0.1 if you want. Try to stick to semantic versioning if you can: http://semver

Why I can't use composer require {packageName} successfully?

扶醉桌前 提交于 2019-12-13 03:55:53
问题 I'm learn how to create Laravel packages, And I wrote a package here: noahprot/fillindata Then I submit it to packagist And I have set a lastest release in github And the Packagist show like this: Already show the latest release Then I use Laravel CLI Tool create a new laravel project, I want try to use this package, and I use composer require noahprot/fillindata But the result like this: [InvalidArgumentException] Could not find a version of package noahprot/fillindata matching your minimum

How to update a single composer package?

十年热恋 提交于 2019-12-13 01:39:17
问题 I know that I can use composer update vendor/package but here's my case. Composer is very slow when updating, I have around 6 packages installed and one local vcs package being loaded from a local folder. When I run composer update even for that specific local package, composer connects to Packagist to look for other updates and this process is very slow, I don't know if it's my computer or my internet. Is there a way I can tell composer to just update the package from local folder when I run