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

My composer project's class won't load

I have a Packagist package for composer, lwilson/onepage, with one PHP file. The file has one class, which contains one function. I have installed the package on my Web server, and I have a PHP file which is supposed to use it. I know that the…
Leo Wilson
  • 503
  • 1
  • 5
  • 16
1
vote
1 answer

Packagist vs. "git clone" and composer install

Just pushed a package to packagist: composer require rokfor/rokfor-slim:dev-master It's returning the error Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for rokfor/rokfor-slim …
rokfor
  • 147
  • 1
  • 11
1
vote
1 answer

How to extract config/views while developing a package for composer/packagist?

I am creating a stand-alone package at packagist.org, seen this article and it helped me a lot http://blog.jgrossi.com/2013/creating-your-first-composer-packagist-package/. Can you please help me out how can I generate views/config like I want to…
zarpio
  • 10,380
  • 8
  • 58
  • 71
1
vote
2 answers

Cannot install newly published Packagist package with composer

I just published my first package on Packagist: https://packagist.org/packages/felixfbecker/advanced-json-rpc. I tagged the first commit with version v1.0.0, which Packagist detects correctly. When trying to install the package with…
felixfbecker
  • 2,273
  • 1
  • 19
  • 24
1
vote
0 answers

Packagist api -> search by (a OR b)

I read the packagist api docs. You can search by tags: GET https://packagist.org/search.json?tags=[tag] And I found that you can search by multiple tags: https://packagist.org/search.json?tags[]=symfony&tags[]=json Which will list packages that…
po_taka
  • 1,816
  • 17
  • 27
1
vote
1 answer

How to to add permanently access to install private packages hosted by SATIS with access restriction in composer

I would like to know how to add permanently credential to install private packages hosted by SATIS with access restriction through composer. Private packages are hosted by SATIS and have HTTP BASIC AUTH access restrictions. I ve added them in…
Tsounabe
  • 2,109
  • 1
  • 16
  • 25
1
vote
1 answer

Can I change the PSR 4 Autoload Namespacing with a fallback?

I have a public package on packagist/composer. Originally it autoloaded with PSR-4 \GitHubUser\Package\Class for the file src/Class.php. I would like to shorten this to \Package\Class for the same file. This is easily done by changing the…
Edd Turtle
  • 1,511
  • 1
  • 13
  • 24
1
vote
1 answer

My own composer package: automatic dev-master download

I'm making my own Composer package for educational purposes. It's just a Laravel extended package with some libraries already installed. I uploaded to GitHub: jorgeanzola/laravel I posted it at Packagist When I try to run: $ composer create-package…
Jorge Anzola
  • 1,165
  • 3
  • 13
  • 33
1
vote
1 answer

packagist error when adding bitbucket repository

I get the following error when trying to add a repository. Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror 'git@bitbucket.org:doppy/doppy.git' '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git/'…
DoppyNL
  • 1,415
  • 1
  • 14
  • 24
1
vote
3 answers

Composer package not found in any version

I am trying to create a custom vendor package but have not yet put the package on packagist. According to the docs, the package can be loaded from git (vcs) instead of packagist:…
gvanto
  • 1,936
  • 3
  • 21
  • 26
1
vote
1 answer

Composer override dependency with another from packagist?

Good Afternoon! I have a project which contained a mix of git submodules and composer packages. I've converted them all over to composer for reasons. Currently, the project uses crisu83/yiistrap (v1.3.0) and 2amigos/yiiwheels (v1.0.6). It has used…
Neil
  • 205
  • 2
  • 10
1
vote
2 answers

Why do I have to run Composer dump after installing my package?

I have created a simple package on packagist for learning (tommytest/tommytest). It installs fine, but I have to run "composer dump-autoload -o" immediately after it is installed. Before manually running the dump-autoload I get this: Fatal error:…
1
vote
1 answer

Why are only certain composer packages stored in cache and not all?

I'm running ubuntu 14.04 and noticed that when I run composer.phar update for packages having dependency for vendors like google, doctrine, twig, etc. it stores its downloaded files in my local ~/.composer/cache/files/vendor. However, when I created…
Prahlad Yeri
  • 3,567
  • 4
  • 25
  • 55
1
vote
1 answer

Packagist prefixes branch names with dev-

Packagist.org prefixes my branches with 'dev-' which I don't wan't it to do, since I've a dev-master and a master branch in my repo. Any trick to not have it prefixed? Packagist page Github repo
Daniel Gelling
  • 892
  • 1
  • 9
  • 22
1
vote
1 answer

Cant install dependencies Symfony 2

Trying to install dependencies: { "name": "whatever", "description": "", "autoload": { "psr-0": { "": "src/" } }, "require": { "php": ">=5.4", "symfony/symfony": "2.3.*", "doctrine/orm": "~2.2,>=2.2.3", …
Valik Gubenko
  • 153
  • 10