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
1
vote
2 answers

Running PHPUnit on composer projects

I am working on a lib for composer/packagist. While working on the PHP classes,I am parallely writing the tests for the method, to check if everything works well. file tree: ├── composer.json ├── composer.lock ├── README.md ├── src │   └──…
Artisan72
  • 3,052
  • 3
  • 23
  • 30
1
vote
0 answers

submitting to packagist.org: package name problems or maybe http url problems

I am trying to submit my package to packagist.org. The url of my repository: https://seekquarry.com/git/yioop.git when I try to submit it, packagist gives me a bunch of exceptions related to ssl, so I tried submitting without ssl using the url above…
1
vote
1 answer

How to update a single composer package?

I know that I can use composer update vendor/package but here's my case. Composer is very slow when updating, I have around 6 packages installed and one local vcs package being loaded from a local folder. When I run composer update even for that…
Blue Genie
  • 1,897
  • 1
  • 16
  • 19
1
vote
1 answer

SVN Hook for Updating Packagist

I have a SVN repository for a PHP package that multiple people work together on. We wish to make the package publicly available, so we have added it to packagist with the url svn://svn.xxxx.com/my-package How do I add a hook to the repository such…
Programster
  • 12,242
  • 9
  • 49
  • 55
1
vote
1 answer

Composer create-project always fails with the project I created

I have this project on Github and Packagist: https://github.com/gitraffa/framework https://packagist.org/packages/gitraffa/framework I want to use this as a deploy app, so, when I need to start a new project I just go to the cmd and type composer…
rafaelmorais
  • 1,323
  • 2
  • 24
  • 49
1
vote
3 answers

Install one package without checking all requirements with composer

I have a composer.json like this: { "require": { "symfony/yaml" : "dev-master", "symfony/console" : "dev-master", "ebuildy/ebuildy" : "dev-master", "keboola/php-encryption": "dev-master", "pear-pear.php.net/mail_mime" : "*", …
Thomas Decaux
  • 21,738
  • 2
  • 113
  • 124
1
vote
0 answers

Modified vendor application for Yii2 in GitHub

I have very little experience with creating a vendor application and installing with composer. It worked well for a simple plugin. I have a problem with a larger plugin. I got the GII code generator of yiisoft/yii2-gii and modified it to do…
Harlan Gray
  • 341
  • 6
  • 20
1
vote
1 answer

Is Packagist the only library/repository of packages that Composer natively pulls from?

Is Packagist (https://packagist.org/) the only repository/library of packages that Composer pull from out of the box? I know that Composer can be configured to point to other libraries of packages, including in-house setups using Satis or other…
Patrick
  • 3,302
  • 4
  • 28
  • 47
1
vote
0 answers

Composer not working try to get my own package after registering in Packagist

First some background, I'm working on a local project which I uploaded to Github and register in Packagist. the composer is install the dependecies for development but the problem occurs when i'm trying to catch MY OWN package after registering in…
user4293838
1
vote
1 answer

Composer dependency without packagist

I have a project that has a dependency to 'webiny/crypt' package (I'm the owner of webiny/crypt repo also https://github.com/Webiny/Crypt). { "require": { "webiny/crypt": "dev-master" }, "minimum-stability":…
SlasherZ
  • 250
  • 3
  • 10
1
vote
1 answer

install with composer individual files

Is possible install (or download) individual files with composer? If a package looks like this: - packageName\ - file_one.php - file_two.php - file_three.php - file_four.php The basic way is to do this: { "require": { …
rogelio
  • 1,541
  • 15
  • 19
1
vote
1 answer

Composer tilde syntax (Next significant release)

I've installed amnah/yii2-user library from packagist via composer into my project. The project's composer.json relevant require section looks like: "amnah/yii2-user": "~2.0" To my understanding, this should install the latest version with a major…
András Szepesházi
  • 6,483
  • 5
  • 45
  • 59
1
vote
0 answers

Packagist / Composer Submit package on alternative port

i would like to know if it s possible to add a package to packagist on a non default port 22. What if we have a GIT repo running on different port? Thx for your help!
til.tack
  • 161
  • 9
1
vote
1 answer

composer unable to resolve google/apiclient 1.0.4-beta dependency on packagist

I'm trying to install: https://packagist.org/packages/elcodedocle/gplusraffle which requires: https://packagist.org/packages/google/apiclient by simply doing: php composer.phar require elcodedocle/gplusraffle 0.1.*@beta and I get this…
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
1
vote
0 answers

Composer dont init and update submodules

I'm making a composer library that have the following structure - vendor/ - src/ - data/ - cnab/ (Submodule: contains files that can be reused in other projects) - composer.json However when I require my library in other project, submodules are…
Jeferson Daniel
  • 173
  • 2
  • 11