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

Is possible to use a custom variable in Travis CI?

I know that there are some default variables for testing with different environments, like the one (for PHP projects) like SYMFONY_VERSION. My question is simple: would be possible to define a custom variable, for testing with a few specific version…
gremo
  • 47,186
  • 75
  • 257
  • 421
2
votes
1 answer

Satis - Storing a Packagist repo locally with local changes that will not be for public consumption

I want to know if I store an existing Bundle that's on http://packagist.org in my company svn repo, do I also need to store the required packages/repos as well? Example, the MonologBundle: https://packagist.org/packages/symfony/monolog-bundle (…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
2
votes
1 answer

How to install phpdoc in Symfony2 with composer

I would like to install phpdoc to build documentation for my symfony2 project. Is there a way to install it like a bundle with composer and in vendor dir ? I don't need Pear for any other tool, so using composer would be nice.
qdelettre
  • 1,873
  • 5
  • 25
  • 36
1
vote
0 answers

Packagist no update after Push to GH

I'm new to Composer/Packagist. So bare with. After careful reviewing ALL the Composer documentation (which IMHO quite verbose but flawes on the details). And going through Azraar Azward good article I'm still stuck. Created GitHub public repo and…
theking2
  • 2,174
  • 1
  • 27
  • 36
1
vote
1 answer

Make packagist require github artifact (instead of commit)

I'm using packagist.org to publish some custom php packages in order to be installable (or rather required) via composer, but I have this some packages that require some build steps (for compiling CSS/JS). The build process is done via github…
Ionuț Staicu
  • 21,360
  • 11
  • 51
  • 58
1
vote
0 answers

Why is packagist not seeing/using my latest releases when I install my package?

I can see my latest releases in Packagist but when I install the package it uses an older one and trying to install using the version number gives "Could not find package..." error. Example: I create a new release and push to GitHub. I scan in…
quantumized
  • 133
  • 1
  • 6
1
vote
0 answers

Composer packagist Could not find a version of package

I have created a laravel package https://github.com/wcaaan/firebase-token-authentication My repository is synced with packagist https://packagist.org/packages/wcaaan/firebase-token-authentication As soon as i push and create a new release it…
Wcan
  • 840
  • 1
  • 10
  • 31
1
vote
1 answer

How to choose thirdy party package versions with upgrading Laravel

For reach release of Laravel the advice is to upgrade the 3rd party packages. For example, this is from the release notes for Laravel 6: Next, examine any 3rd party packages consumed by your application and verify you are using the proper version…
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
1
vote
1 answer

Github stars not showing correctly in packagist

I have recently created an open source project in github. https://github.com/sagautam5/local-states-nepal And then, I have uploaded this package to https://packagist.org, After that, I have made auto updating by adding web hook. Main problem is star…
Sagar Gautam
  • 9,049
  • 6
  • 53
  • 84
1
vote
1 answer

Why is repository local directive in composer not working?

There is a project "OctoberCMS" that has a library called "rain" viz. a dependency. I cloned them to my desktop using: git clone --branch develop git@github.com:octobercms/october.git git clone --branch develop git@github.com:…
Saifur Rahman Mohsin
  • 929
  • 1
  • 11
  • 37
1
vote
0 answers

How should we compile my assets (Typescript) before sending it to Packagist?

I am building a plugin for my website that should do some antispam (primarily educational reasons). It has mostly been finished but now I am now hitting a massive speedbump in the final bits before I want to start doing "live" trials with it. You…
Finlay Roelofs
  • 533
  • 6
  • 21
1
vote
2 answers

Can I place the composer.json file for my project not on the root directory?

I am implementing a project that I want to share via Packagist. Usually, the composer.json file would be in the project root directory, but I want to have all the composer-related files and directories under the subdirectory /private/composer. After…
Joan Botella
  • 315
  • 1
  • 2
  • 14
1
vote
2 answers

How to set the install directory for a package on the package, instead of on the project?

I am working on creating a custom composer package. The composer package must install to a custom folder instead of vendors/ directory I want it to be installed in packages/. This is how my composer.json looks like: { "name":…
Gaurav Mehra
  • 471
  • 7
  • 20
1
vote
0 answers

Travis CI: Publishing only passing tag versions for php composer package

We have git repositories that are Composer, php packages. To publish a new version of one of these Composer packages on https://packagist.org we currently do the following: Create a new git tag such as v1.0.0 and push it. Travis-CI picks up this…
AndrewMcLagan
  • 13,459
  • 23
  • 91
  • 158
1
vote
0 answers

Proper way to post changes to packagist?

I recently took 'ownership' of a git repository for some code made for my company by a third party. I finally needed to update something in the package yesterday and realized I also needed ownership of the packagist package details. Upon contacting…
Scott
  • 7,983
  • 2
  • 26
  • 41