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
0
votes
0 answers

Symfony 6 - Problem with creating a bundle for symfony 6 to add new commands to the symfony console

I am a newer in packagist development. I made two commands to make documents ands cruds on my symfony6 project for mongo Documents (with auto documentation from nelmio-api-bundle). Now I use this commands in many projects and I want to create a…
AlexM
  • 1
0
votes
0 answers

Packagist: Create a custom package

I am trying to create a private package ("private package" means only authorized people can access it through 'composer require ' command. Packagist provide an option to create private packages) using Packagist. I am able to create package using…
0
votes
0 answers

How to update/sync composer.json with entries from composer.lock

I have following in my composer.json { "require": { "vendor/package": "^2.0.0", // but installed 2.1.1 because of the ^ } } how do I update/sync the composer.json from composer.lock to have the latest installed/exact version…
Shobi
  • 10,374
  • 6
  • 46
  • 82
0
votes
1 answer

Composer - how do I tell it to install the root package?

Forgive a trivial Composer question: Assume a php package is defined on GitHub and synched to Packagist in the usual way. Its .json defines it to Packagist via e.g. “name” : “my/package” lists its dependencies via “require” : { blah} maps its…
decomplexity
  • 343
  • 2
  • 4
  • 13
0
votes
0 answers

How to remove and install package via composer with ignore check and update other packages

I have some package ex : vendor/obsolete-pwd which is protected with password (http-basic) and no longer have the new password (I can't update the pwd). I want solution for the time to move this packages to another repo. Remove: I tried composer…
Bosee
  • 11
  • 2
0
votes
0 answers

Packagist submit: the package name was not found in the composer.json

I've recently developed a library to easy the process of logging information to a separate server that I'm hosting. The goal is to use the library in multiple of my projects but I can't find a way to submit it to packagist. When I try to submit my…
MikeSli
  • 927
  • 2
  • 14
  • 32
0
votes
1 answer

How to Remove packagist.org Tag Ignored Warning Message?

I released a package version to packagist.org, through github.com releases, with a version tag that packagist.org didn't like (suffix of -dev). I've corrected the version error and republished and the corrected version is now showing up on…
James John McGuire 'Jahmic'
  • 11,728
  • 11
  • 67
  • 78
0
votes
1 answer

Composer can not connect to repo.packagist.org:443

whene i run composer u , in laravel receive this error : Loading composer repositories with package information https://repo.packagist.org could not be fully loaded (curl error 35 while downloading https://repo.packagist.org /packages.json: OpenSSL…
Ali Salehi
  • 23
  • 1
  • 8
0
votes
0 answers

Packagist (or poser?) are reporting no stable version for my packages

Something happened as of lately and packagist (or poser?) are reporting no stable version in the badge on my github page, for all my PHP libraries This, for example https://github.com/stefangabos/Zebra_Database Until recently, the first badge was…
Stefan Gabos
  • 1,345
  • 13
  • 15
0
votes
2 answers

illuminate/bus packages were not loaded, likely because it conflicts with another require

Lavavel & PHP versions: Laravel: 7 PHP: 7.4.30 I am trying to install pbmedia/laravel-ffmpeg package using composer like so: composer require pbmedia/laravel-ffmpeg On the first try the error message was this: Problem 1 -…
0
votes
1 answer

First composer package published not found

i know this has already been asked but, i can't see what is going wrong without asking. I've created a packagist for a custom code hosted on github. Packagist : https://packagist.org/packages/claims/module-logger Github :…
Claims
  • 245
  • 2
  • 15
0
votes
1 answer

Laravel chartisan chart git repository not found

I am using Chartisan chart in my project. Now when I run composer install it returns this error. fatal: repository 'https://github.com/Chartisan/Charts.git/' not found Now I have been stuck now because I didn't able to install packages. any one else…
Jack
  • 31
  • 4
0
votes
1 answer

Why pulling package from packagist is failing?

I have forked a repository to make some changes in it. Here is my repo https://github.com/vinsaj9/scrypt and it has tags too. It is linked with packagist https://packagist.org/packages/vinsaj9/scrypt Now, I am getting following error "The…
Vineet Sajwan
  • 156
  • 2
  • 8
0
votes
1 answer

invalid composer.json metadata packagist

When I push new tag to my package to update my composer plugin it returns this error: Update of failed, invalid composer.json metadata [Composer\Repository\InvalidRepositoryException] Some branches contained invalid data and were discarded, it is…
mafortis
  • 6,750
  • 23
  • 130
  • 288
0
votes
0 answers

How can you list composer requirements in a site along with their sources at the command line

I work on some sites with many composer requirements and need to be able to create a report of all of the package sources. For example, if I had the following packages: zizaco/entrust taitems/jQuery.Gantt opauth/opauth and some of these were not on…
Jav
  • 543
  • 1
  • 4
  • 10