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

Force an old dependency to be installed with Symfony

Updating to Symfony 2.3 is easy if all the dependencies support it. One of the dependency I am using from Packagist says its requirement is Symfony <2.3. Therefore, I cannot install that library. The library is a little old, and I know there is one…
jsgoupil
  • 3,788
  • 3
  • 38
  • 53
0
votes
1 answer

Ignore a git directory in composer package

I have composer library hosted as a package on Packagist through GitHub. The repository includes a directory named sample with some samples on how to use the code and this directory is really not needed when using the package. Is there a way to have…
Svish
  • 152,914
  • 173
  • 462
  • 620
0
votes
1 answer

Exception occurred when submitting a package to Packagist. How to solve?

I'm tying to submit a package (staring with the project) to Packagist, but I'm having the following error: [Doctrine\DBAL\DBALException] An exception occurred while executing 'INSERT INTO tag (name) VALUES (?)' with params {"1":"Mathematica"}:…
GarouDan
  • 3,743
  • 9
  • 49
  • 75
0
votes
1 answer

Satis - How to set name in generated packagist packages.json

Here are the docs: http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md Here is my config.json file { "autoload": { "psr-0": { "": "src/" } }, "name": "Local Packagist", "homepage":…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
-1
votes
1 answer

Composer package not extracting - End-of-central-directory signature not found

Trying to install spatie/laravel-activitylog, however only the latest version of this package is troubling, other all packages are getting installed smoothly Error Description End-of-central-directory signature not found. Either this file is not …
rsakhale
  • 1,018
  • 13
  • 26
-1
votes
1 answer

Composer package has requirement conflict when installing, but no requirements are required

I created a package and have put it on a private Packagist which fetches from private Bitbucket repo. This all works fine until I try install the package. My composer.json looks like this: { "name": "XXXX/fields", "description": "Field…
Matt
  • 1,081
  • 15
  • 27
-1
votes
1 answer

How to upgrade Composer? - Composer update failed: "/opt/cpanel/composer/bin/composer" could not be written

Background: It was reported on 27 April 2021 that Composer has a vulnerability that impacts…
-1
votes
2 answers

Is there some public mirror for composer packages?

My company's IPs range seems to be blocked by packagist.org's hosting service and I can't reach that domain. I've already contacted them but I don't know how much long it will take to remove the blockage. Moreover, every external web proxy I try to…
Phellipe Ribeiro
  • 491
  • 3
  • 13
-1
votes
1 answer

Composer won't install dependency

I have created a composer package with this composer.json { "name": "webiny/cache", "type": "library", "minimum-stability": "dev", "require": { "php": ">=5.4.0", "jamm/memory": "dev-master" }, "require-dev":…
SlasherZ
  • 250
  • 3
  • 10
-2
votes
1 answer

How can I make a decoupled component of an application into it's own package yet still maintain it in the parent application?

If a particular component of an application is decoupled enough from the parent that it can be used by other applications, how would I go about making that component into it's own composer package yet still maintain it in the scope of the parent…
Cesar Vega
  • 13
  • 1
1 2 3
18
19