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
10
votes
3 answers

Why composer can not find my brand new package on packagist.org?

I've just created my first component on packagist.org, this is a forked version of greensock-js. I put "components/greensock-js": "1.11.*@dev" into the require section of my composer.json file, but the issue is composer can't find this package,…
haxpanel
  • 4,402
  • 4
  • 43
  • 71
10
votes
1 answer

Excluding files from composer packages

I have a PHP library that I've put up on packagist.org. I'd like to exclude certain files from the package (e.g. a couple of JARs, and my tests), so people depending on my library don't have to download them. I've put the following in my…
Rowan
  • 2,585
  • 4
  • 24
  • 34
9
votes
1 answer

How to upload or fix avatar in Packgist.org profile

I'd like to know how to display an avatar in Packagist. For example, my package doesn't show my avatar, which I set the GitHub-Packagist API correct or I can't found any upload panel in Packagist profile. Installed GitHub Apps > Services >…
Nick Tsai
  • 3,799
  • 33
  • 36
9
votes
2 answers

Composer autoload-dev does not work

The file autoload_psr4.php not contains the namespace from "autoload-dev" section only from "autoload" section. When my composer.json reads "autoload": { "psr-4": { "Namespace\\": "src/" } }, "autoload-dev": { "prs-4": { …
Josantonius
  • 109
  • 1
  • 2
7
votes
2 answers

Copy files from package to project root directory using composer

I'm writing a package for Packagist and I'm facing a problem with Composer. I need to copy a file from my package to the project root after install, but nothing is happening after the package installation. After reading Composer documentation, I…
felipe_bool
  • 93
  • 1
  • 7
7
votes
1 answer

Packagist is not picking up my new release from GitHub

I released a new version of my composer package on GitHub, however it is not updating on Packagist, not even when I manually click 'Update' on the package page. The weird thing is that it does show the latest version of the README file. Also, the…
Jeroen Noten
  • 3,574
  • 1
  • 17
  • 25
7
votes
2 answers

Composer/Packagist not giving me my latest package

If you go you https://packagist.org/packages/geekality/website and compare it with what you get when you run `composer show geekality/website. Latest version at packagist at the top is v0.7 Latest version given in command line output is v0.6 Latest…
Svish
  • 152,914
  • 173
  • 462
  • 620
6
votes
1 answer

Marking a packagist package as abandoned in favor of a new location

I'm going to be taking over a fairly popular PHP package under a github organisation. It's going to move from its previous location, and as a result the composer package name will be out of date. I know it's possible to mark a package abandoned on…
J V
  • 11,402
  • 10
  • 52
  • 72
6
votes
0 answers

Symfony2 can't load bundle

I'm trying to use my own bundle in the new Symfony2 project. I've created the project and than installed all required bundles using composer. Here's my project's composer.json file { "name": "symfony/framework-standard-edition", "license":…
Nikola Ninkovic
  • 1,252
  • 1
  • 12
  • 27
6
votes
2 answers

composer update authentication on packagist

I have a problem with the composer update for my project made in laravel 5. Everytime I want to update the composer with other packages (from Packagist) I get an authentication box (not suposed to be one) and then even if I input my github/packagist…
Alxp
  • 61
  • 1
  • 3
6
votes
1 answer

How To Submit A Project at packalyst

How To Submit A Project at packalyst? not packagist I cannot find any page I can submit.
ken
  • 131
  • 2
  • 13
5
votes
1 answer

Working on forked GitHub repository through Composer

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…
Richard
  • 4,341
  • 5
  • 35
  • 55
5
votes
2 answers

Ignore tests folder when send to packagist

I have a project with the following structure: - src ----/ /* Relevant files */ - tests ----/ /* Irrelevant files */ - composer.json - phpunit.xml The project is sent to packagist on every commit already. But, it is sending the test files. I'd like…
CarlosCarucce
  • 3,420
  • 1
  • 28
  • 51
5
votes
1 answer

Composer/Packagist ignore branches

So I have the following branches in my Github repo: (follows "git flow") master (latest stable: 1.1.0) develop (2.0.0) feature/feature_in_dev feature/other_feature_in_dev release/1.0.0 release/1.1.0 I already know how to create branch aliases,…
Nicholas Summers
  • 4,444
  • 4
  • 19
  • 35
5
votes
1 answer

Setting up alias for master branch in composer

I am trying to package a module for use with composer. I have a valid composer file and I am able to install it with composer, but only when I specify that it should use dev releases (via the "@dev" version directive or minimum stability dev). I am…
MrGlass
  • 9,094
  • 17
  • 64
  • 89
1
2
3
18 19