Questions tagged [packagist]

Packagist Package Repository Website for Composer, see the about page on packagist.org for more.

Packagist

Package Repository Website for Composer, see the about page on packagist.org for more.

Requirements

  • MySQL for the main data store
  • Redis for some functionality (favorites, download statistics)
  • Solr for search
  • git/svn/hg depending on which repositories you want to support

Installation

  1. Clone the repository
  2. Copy app/config/parameters.yml.dist to app/config/parameters.yml and edit the relevant values for your setup.
  3. Install dependencies: php composer.phar install
  4. Run app/console doctrine:schema:create to setup the DB.
  5. Run app/console assets:install web to deploy the assets on the web dir.
  6. Make a VirtualHost with DocumentRoot pointing to web/

You should now be able to access the site, create a user, etc.

Setting up search

The search index uses Solr, so you will have to install that on your server. If you are running it on a non-standard host or port, you will have to adjust the configuration. See the NelmioSolariumBundle for more details.

You will also have to configure Solr. Use the schema.xml provided in the doc/ directory for that.

To index packages, just run app/console packagist:index. It is recommended to set up a cron job for this command, and have it run every few minutes.

Day-to-Day Operation

There are a few commands you should run periodically (ideally set up a cron job running every minute or so):

app/console packagist:update --no-debug --env=prod
app/console packagist:dump --no-debug --env=prod
app/console packagist:index --no-debug --env=prod

The latter is optional and only required if you are running a solr server.

Github:

280 questions
1
vote
1 answer

Configure composer to get data from packagist.org via https

When building files in an environment that blocks outbound http requests, I get an error like: Updating dependencies (including require-dev) The "http://packagist.org/p/provider-2013%ahash.json" file could not be downloaded: failed to open stream:…
greggles
  • 2,089
  • 5
  • 20
  • 38
1
vote
1 answer

Sync tags in slave repos using git subtree

I have a repository on github that is made up by different modules. I prefer to have all these modules under the same repository (it's easier to work, for me), however I also need to be able to mantain a "separate copy" of these modules, because I…
Sneppy
  • 379
  • 5
  • 20
1
vote
1 answer

What's the difference between ~ and ^ in packagist

I'm a bit confused the difference between '~' and '^' in packagist , code example in composer.json file: "require": { "doctrine/dbal": "^2.6", //this is using '^' symbol "garygreen/pretty-routes": "~0.0.6" //this…
Lejiend
  • 1,219
  • 2
  • 16
  • 24
1
vote
1 answer

Packagist does not take tags/releases that i push

here is my pushed tags here is my packagist does anyone know how to resolve this?
Lejiend
  • 1,219
  • 2
  • 16
  • 24
1
vote
1 answer

Why Can Composer See My Package But Not Find To Install?

I can't figure this out. I have my package on packagist: https://packagist.org/packages/jafo232/ambientapi And when I try to install it via composer with composer require jafo232/ambientapi I get: [InvalidArgumentException] Could not find…
Jafo
  • 1,200
  • 2
  • 11
  • 22
1
vote
0 answers

Composer\Downloader\TransportException

C:\xampp\htdocs\laravel_l>composer update The "https://original.packagist.jp/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known. failed to open stream: php_network_getaddresses:…
Honda hoda
  • 481
  • 2
  • 6
  • 12
1
vote
1 answer

laravel 5.5 package developing need to use composer require vendor_name/package_name

I developed a Laravel 5.5 package with package auto discovery and pushed it at git hub https://github.com/adamibrahim/authconfirm when i run $ composer require "adamibrahim/authconfirm" : "v0.1.1" I got an error could not find package…
Adam Ibrahim
  • 95
  • 1
  • 10
1
vote
1 answer

For php composer packages (published on packagist) what patch version comes after 1.0.9?

What version should be published after v1.0.9 so that composer update runs smoothly? I am thinking the version should be bumped to either v1.0.10 or v1.0.901. Surprisingly, after almost 5 minutes of Google searches, I did not find a clear answer.…
Frank Forte
  • 2,031
  • 20
  • 19
1
vote
0 answers

Composer that requires git repo and packagist

I am trying to set up composer for a project I am working on. The project is basically a wordpress site that sits on some repo. What I am trying to accomplish below is as follows: download the private github repo into the root directory (currently…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
1
vote
0 answers

Is it possible to use Composer update without tagging version

I'm coding a Laravel Package, and a very annoying thing is my workflow is that when I want to try my plugin in a new Laravel installation, ( I install it with composer require "myplugin/myPlugin" ), it is mandatory to tag in github a version, so…
Juliatzin
  • 18,455
  • 40
  • 166
  • 325
1
vote
0 answers

Registering Controller in Service Provider in Laravel

I am trying to understand the packages in laravel which I should be able to upload to github subsequently. I got everything working except for the controller of my package, haven't worked on views yet. But I am getting the following error when I…
StudentX
  • 2,243
  • 6
  • 35
  • 67
1
vote
1 answer

Composer won't install package dependencies

I have created composer package, which composer.json is { "name": "xxxx/yyyyy", "description": "xyz", "license": "MIT", "authors": [ { "name": "xxx", "email": "xx@ttt.com" } ], …
Rob
  • 127
  • 8
1
vote
0 answers

Composer not making request to private repository

I have a private Satis repository set up on which I am hosting several private packages. I would like to include one of these packages as a dependency for a package I am writing, but when I try to run composer update (with composer version 1.4.1),…
Byte Lab
  • 1,576
  • 2
  • 17
  • 42
1
vote
2 answers

Composer create-project is not working even though latest release is available on packagist, but composer install works for same project

UPDATED: It's working on Ubuntu but not on Windows, is there installation problem with Composer ? Package: https://packagist.org/packages/chetan85/yii2-app-advanced-for-shared-hosting Command: php composer.phar create-project…
Chetan Sharma
  • 2,539
  • 5
  • 25
  • 41
1
vote
0 answers

Composer package installation fails in some directories

I would like to install package from http://packagist.org for example Monolog. I open cmd.exe, go to folder and type composer require monolog/monolog When I try executing command in D:\user (no Polish characters) composer installs package. When I…
Jarmark
  • 131
  • 2
  • 11