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
3
votes
1 answer

How to test the script and require before posting in packagist?

Maybe a true stupid question but how can I really test a script with his dependencies before pushing the package to packagist? I have tried with in myroot/composer.json : "autoload": { "psr-0": { "myname/core": "vendor/myname" …
injetkilo
  • 300
  • 2
  • 10
2
votes
1 answer

How to update tags in packagist?

I'm the owner of the package https://packagist.org/packages/lenny4/doctrine-merge-persistent-collection-bundle When I look at the tag of my package I got this: Lenny4 and doctrine-merge-persistent-collection-bundle where can I add/remove/update…
Lenny4
  • 1,215
  • 1
  • 14
  • 33
2
votes
4 answers

CURL error 28 while downloading Connection timed out after 10000 milliseconds

I'm trying to install Yajra, a Laravel package to handle server-side works of DataTables jQuery Plugin via AJAX option. But I got this problem and I can't fix this. Please do you have anything to help me? [Composer\Downloader\TransportException]…
Torea PATISSIER
  • 29
  • 1
  • 1
  • 3
2
votes
1 answer

Composer library can't find dependency

I made my first php library available through packagist. I'm still figuring out how it works, but I keep getting this exception: Fatal error: Uncaught Error: Class 'Waspeer\NextAction\FabianBeiner\Todoist\TodoistClient' not found in…
Wannes
  • 158
  • 10
2
votes
1 answer

Legacy Auto-Update, Needs Attention

When I log into packagist.org I get this message on my packages: This package is using the legacy GitHub service and will stop being auto-updated in early 2019. Please set up the new GitHub Hook for Packagist so that it keeps working in the…
neubert
  • 15,947
  • 24
  • 120
  • 212
2
votes
1 answer

Loading a composer class in laravel

I'm in the process of trying to make a laravel compatible composer/packagist package. I'm using Laravel 5.5. I've created a package : floor9design/machine-identifier. Composer downloads this to vendors/floor9design fine, but despite reading/googling…
elb98rm
  • 670
  • 6
  • 21
2
votes
0 answers

Composer very slow, problems connecting to packagist.org with Curl

I'm struggling to do a composer update, everytime I try to I get the following error: [Composer\Downloader\TransportException] The "https://packagist.org/p/provider-2013%24442e1d5fa0fdbf77855cc363b02499 …
John Mellor
  • 2,351
  • 8
  • 45
  • 79
2
votes
4 answers

composer installation from behind proxy server

I'm trying to run composer update on windows 10 behind a proxy server, it gives me an error. and I set http proxy using below command SET HTTP_PROXY="http://192.168.1.6:808" SET HTTPS_PROXY="http://192.168.1.6:808" this also return same error.
Arafath
  • 1,090
  • 3
  • 14
  • 28
2
votes
1 answer

is packagist.org intended only for libraries, rather than complete applications?

If I have a complete application, and I want to make it very easy to install, is it appropriate to publish it as a package on packagist.org? Or is packagist intended only for the dependencies you use for putting together other applications? The…
David
  • 815
  • 8
  • 18
2
votes
0 answers

Composer/Packagist/Github: how to tell which version is stable?

I'm getting a version conflict for the required package phpmd/phpmd, and I'm not sure why a common version can't be resolved. Running composer require yvoronoy/magento2-bash-completion yields... Problem 1 - Installation request for…
laketuna
  • 3,832
  • 14
  • 59
  • 104
2
votes
1 answer

How can I know what packages can be upgraded to a new version given a composer.json file?

Is there any utility or service that allows to know what packages have released new versions given a custom composer.json file? It would be very useful in order to plan packages upgrades.
2
votes
1 answer

How to add new package version to Packagist?

I have a problem with adding a new package version to packagist. https://github.com/skydriver/stripe-request https://packagist.org/packages/skydriver/stripe-request My project is on Git Hub (with webhooks), and Dev version and the first release…
Damjan Krstevski
  • 265
  • 1
  • 5
  • 15
2
votes
1 answer

Can two packagist users publish packages under same vendor name?

There are there team member in our team. One who was creating library and posting on packagist.org . Now Without him nobody can post under the vendor name . For example: Our Group name in github is "hedronium" No group members can submit any kind of…
Aniruddha Chakraborty
  • 1,849
  • 1
  • 20
  • 32
2
votes
1 answer

retrieving fork with composer

This has been discussed multiple times in multiple questions on SO, but all the answers given refuse to work for me accept this answer: Contributing to open source bundles from vendor directory? I've tested this on multiple machines, so I'm pretty…
Boedy
  • 6,647
  • 1
  • 21
  • 24
2
votes
1 answer

Yii2 & Composer - How do I pull locally for 1 package, ignoring packagist

I am wanting to play around with one of my repos that is currently on Github/Packagist. Actually, I am wanting to turn it into a Yii2 extension. I do not want to follow the git add, git commit, git push, composer update, circle. I want to bypass my…
Wade
  • 3,757
  • 2
  • 32
  • 51