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
0 answers

how to convert composer package to Laravel's package

I am using a composer's package available at packagist that is https://packagist.org/packages/phpmailer/phpmailer . so my question is that how can we use such composer based packages in Laravel which don't have service providers like Laravel…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
0
votes
1 answer

Joomla CMS on packagist

Can I download joomla CMS from packagist? There is a lot of joomla packages there but no one seems to be the same as: https://github.com/joomla/joomla-cms?
Amorphous
  • 779
  • 7
  • 27
0
votes
1 answer

Why I cannot install my composer new package?

The package - https://packagist.org/packages/drakonli/php-utils My composer: { "require": { "php": ">=5.3.0", "drakonli/php-utils": "dev-master" }, "minimum-stability": "dev" } The error I get when i use "composer…
drakonli
  • 2,304
  • 23
  • 29
0
votes
1 answer

My readme is readable in bitbucket but not in packagist

I created my first composer package. After several problems (like autoload, versions, etc.), I managed to make something functional. My last problem is that my readme.md is readable on my BitBucket repo but not in my packagist "page". I tried to let…
MisterDebug
  • 915
  • 9
  • 15
0
votes
0 answers

Host private PHP packages on packagist with gitlab

I have a gitlab installation for my organization. To standardize, the frameworks and development process we'd like to make the use of our own packagist installation on our server. The thing that is confusing me, is when I have to submit a package…
SAM
  • 641
  • 2
  • 16
  • 30
0
votes
1 answer

Why is Wamp server giving errors when I use Composer?

I'm trying to use the API of a dutch site that's being used by schools in The Netherlands to keep track of the grades and other data of the students. You can find the documantation here: http://www.magister-api.nl/ (it's in Dutch). I installed Wamp…
Sheeps
  • 3
  • 3
0
votes
2 answers

Use "secure-http:false" for Composer used by Packagist

I have Packagist set up to provide a local package system for our project, however the local Gitlab server only runs over http://. Where is the composer.json used by Packagist? And is this what I would add? { "config": { "secure-http":…
James
  • 492
  • 1
  • 6
  • 21
0
votes
1 answer

Packagist - add more than one repositories

I added my first repository to Packagist yesterday. Today, I wanted to add a second package from the same vendor. But Packagist refused to take it. It gives me the following message: The vendor is already taken by someone else. You may ask them to…
Brotzka
  • 2,959
  • 4
  • 35
  • 56
0
votes
1 answer

Load json file from git package by composer

I develop git repository, that contains only one useful file data.json. Another repo which I develop in parallel is php implementation of idea. And now I need to load list from data.json, parse it and then use. First and most obvious idea was write…
0
votes
1 answer

Caching package

I need to know a good purely php based composer package. I need to be able to cache viewed URL's for 72 hours and be able to call on the cache to check if a given URL is already cached. I have used packagist but in my current inexperience most of…
0
votes
1 answer

Composer checkout out instead of downloading

I have created my own base project which I install in my projects using Composer. It is a gitrepository, stored on Github. Then I create releases and push them to Packagist. I can install the base project, but instead of downloading the package like…
Dieter Pollier
  • 689
  • 1
  • 5
  • 11
0
votes
1 answer

How to choose the right Composer packages?

I'm a bit confused about using Composer. I have built my own package manager, that uses a config-file and a large SVN-repo that contains all possible libraries (both PHP and Javascript / CSS) I need in several different projects. I download these…
Dylan
  • 9,129
  • 20
  • 96
  • 153
0
votes
1 answer

What are the consequences of using a non-semantic version number in composer for packagist?

I want to publish a fork of a PHP library on Packagist. However as not really big changes may be made we want to use the official version number and just modify it a bit to add our own one. So in the end we came up with the idea of a version number…
rugk
  • 4,755
  • 2
  • 28
  • 55
0
votes
2 answers

How does the Composer trick with re-defining the packagist repo work?

In the issue (#3156) discussion "composer is very slow" on the Composer GitHub page is suggested to re-define the packagist repo with a https:// url in the global config using: $ composer config --global repo.packagist composer…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
0 answers

How to make fork from dropbox php sdk and use in the my composer?

I did the fork from dropbox php sdk. I need to use it in the my composer package, after I call composer update I get an error: Installation request for demi/dropbox-backup dev-master -> satisfiable by demi/dropbox-backup[dev-master]. …
Ivan Orlov
  • 195
  • 2
  • 8