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

Packagist server without Solr?

We want to setup a private Packagist server (https://packagist.org/, https://github.com/composer/packagist) in our infrastructure. We consider running Solr overhead as we will not have that have many packages. The Packagist documentation says that…
mile
  • 76
  • 1
  • 2
0
votes
1 answer

Why can't I download my package through packagist?

I have developed a library and I decided to throw it to the packagist. My composer.json looks like the following { "name": "kamranahmedse/php-geocode", "type": "library", "description": "A wrapper around the Google Geocoding API to get…
Kamran Ahmed
  • 11,809
  • 23
  • 69
  • 101
0
votes
1 answer

Required package in composer.json not found

I have created using the workbench of Laravel a package and uploded it to Packagist under pica/pica-base. The package contains the following require statement: "require": { "php": ">=5.4.0", "illuminate/support": "4.2.*", …
0
votes
1 answer

Composer dependancy not available for PHPDOX

I am trying to install phpdox through composer. "require": { "phploc/phploc": "2.0.6", "phpunit/phpunit": "4.2.4", "pdepend/pdepend": "2.0.0", "phpmd/phpmd": "2.0.0", "squizlabs/php_codesniffer": "2.0.0a2", …
Maxcot
  • 1,513
  • 3
  • 23
  • 51
0
votes
1 answer

What is the proper way to incorporate additional packages into Laravel?

I am attempting to integrate this package: https://bitbucket.org/cerbero/oauth/wiki/Home Also seen her on Packagist: https://packagist.org/packages/cerbero/oauth The documentation from BitBucket says: Installation Be sure minimum-stability is set…
sparecycle
  • 2,038
  • 5
  • 31
  • 58
0
votes
0 answers

Can't run any "composer create-project" or "composer require" command

I tried to clone some packages to my symfony projects, but it seems there are some issues with repository servers. My command stays there for ever and does nothing: $ php composer.phar require sonata-project/admin-bundle Does anyone know how to…
cute.S
  • 361
  • 4
  • 17
0
votes
1 answer

howto import packages in local packagist.org installation by command

Scenartio: We have an internal packagist.org installation for our private repositories. These packages/repositories are hosted on our privat GitLab-server. As we have a lot of packages (~150 and counting) it would be great to to add these by an…
0
votes
2 answers

Packagist: "create-project" from fork loads original repo

I'm just trying to grasp the concepts of dependency managers and GIT systems, so it's very possible I'm missing something very basic. I use ROOTS/BEDROCK project as a base of my Wordpress projects. It allows to use Composer with Wordpress (by adding…
Petr Cibulka
  • 2,452
  • 4
  • 28
  • 45
0
votes
1 answer

.htaccess for packagist where you can't choose web as webroot

I was installing packagist, a symfony2 app, and ran into a situation where I couldn't set the webroot as the 'web' directory. Because I didn't want to have to type /web/ or /web/app.php, I needed an .htaccess to accomodate this situation, including…
etc
  • 565
  • 3
  • 18
0
votes
2 answers

Submitting a package to packagist causing "composer_home env variable" error

Whenever I submit a git package to my packagist installation, I get the following error: Uncaught Exception: [RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly I've tried exporting the…
etc
  • 565
  • 3
  • 18
0
votes
2 answers

Composer stopped working... What is ngmy/l4-dav?

I've been having trouble getting composer to update or install since last Friday. Here is a list of my dependencies for this project: "require": { "twilio/sdk": "dev-master", "ircmaxell/password-compat": "1.0.*", "hautelook/phpass":…
Brad
  • 1,880
  • 1
  • 12
  • 18
0
votes
2 answers

How to ensure dependency is satisfied by stable version

I asked this on the composer-dev mailing list, but the community is not as active as SO. I recently published this package on Packagist with a 1.0.0-dev version, then shortly afterwards I added some documentation and released it as 1.0.1. (Both…
Tim
  • 8,036
  • 2
  • 36
  • 52
0
votes
1 answer

Why composer does not install my app

I am new with composer and i am just trying to make a composer file and make my product to be downloadable via composer, i have registered in packagist site and uploaded my product there. I have the following details in my composer.json file. { …
dariush
  • 3,191
  • 3
  • 24
  • 43
0
votes
1 answer

PHP Composer installed empty repository on remote site

In my web app I've successfully installed several PHP Github repositories using Composer. The most recent one I installed on my localhost (using php composer.phar update blahblah/blahblah) works great just like all the others. However, when I git…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
0
votes
1 answer

How to customise composer repository location?

Excuse me if this sounds silly but I am quite new to composer. I try to install a repository distributed in Packagist, but I don't know how composer defines the location of the repositories required. If I install a repo on VCS, I can define the…
Michael
  • 2,075
  • 7
  • 32
  • 46
1 2 3
18
19