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

Create package from existing git repo

I have a situation like this... I am working on a project that at some point got bigger than I thought it would be. This is project contains basically 2 important parts that work together but I want to separate them. the first part contains this…
Vlad Kucherov
  • 159
  • 1
  • 15
1
vote
1 answer

Package version support using git tags

I'm the author of Restler framework, now trying to use properly named tags for package versioning. I'm using the following composer.json and named my tags as advised in https://getcomposer.org/doc/02-libraries.md#tags which you can see at…
Arul Kumaran
  • 983
  • 7
  • 23
1
vote
2 answers

What to do if a Composer-loaded dependency repo doesn't exist anymore?

Currently nearly the entire packagist.org-based dependency loading relies on GitHub-based repos. But GitHub users have the possibility to delete public repositories, which leads to the question: What to do if a necessary Composer-loaded dependency…
Sliq
  • 15,937
  • 27
  • 110
  • 143
1
vote
1 answer

Composer package get app base / configuration option

I'm creating a package for composer, and I'm wanting to (from inside a class in my package) check if a configuration option exists, and if not set a default. Is there a best practice etc for package configuration (or is that done in composer.json)?…
kyleferg
  • 53
  • 6
1
vote
1 answer

composer into existing project using vendor-dir

I have following situation, i am starting with composer BUT... I have following dir structure, following is my include folder specified in php.ini d:\Inetpub\include\ I have a autoload.php under this folder following PRS-0 I create new objects like…
Jan Van Looveren
  • 908
  • 2
  • 11
  • 21
1
vote
1 answer

create a composer package on packigist with bitbucket

I have be building my own framework for self education and am trying to set it up to work with composer. I uploaded it to bitbucket and created a packagist but when I try to install it on netbeans on my windows I get a error 'git' is not recognized…
Yamiko
  • 5,303
  • 5
  • 30
  • 52
1
vote
1 answer

composer and site configuration files

Is it possible to install a file out of the 'vendor' directory when doing a composer install/update? Let me elaborate a bit more if your not sure what i mean. I have a config file(s) that are stored in /config/ini/.ini and lots of vendor…
mic
  • 1,251
  • 2
  • 15
  • 33
1
vote
1 answer

Using css packages from Packagist in Laravel

There are a lot of css packages on packagist.org Example: Bootsrap https://packagist.org/packages/twitter/bootstrap Foundation https://packagist.org/packages/components/foundation After adding the package to composer.json and running composer…
Yada
  • 30,349
  • 24
  • 103
  • 144
1
vote
1 answer

Specifying autoloading in composer.json

I am starting to use Composer and am a bit confused on how to specify how things should be autoloaded. My initial assumption was that one would define how to autoload classes of a package within this package. I'm however getting the impression that…
Jeroen De Dauw
  • 10,321
  • 15
  • 56
  • 79
1
vote
1 answer

Using Composer when multiple components are in the same vcs repo

I have a git repo that contains a few small and related libraries. Since the platform I am working with lacks proper dependency management, dealing with many git repos is a hassle, hence my team decided to put these into one git repo. I'm now…
Jeroen De Dauw
  • 10,321
  • 15
  • 56
  • 79
1
vote
1 answer

Installing Laravel 4 Powerpack breaks code in SessionServiceProvider?

After I use composer update with L4 powerpack requirement in composer.json, it fetches it with no problems. Then I update providers and aliases arrays in app.php, but when I use HTML::script(...) I get the following: ErrorException: Notice:…
1
vote
2 answers

Composer package autoloading

I can't get my library to work. The directory structure is lib-name/src and inside theres a main dir and a tests dir, how do I tell composer to load from the /lib-name/src/main folder? Link to my library github https://github.com/gerardorn/catalogo
gerardorn
  • 89
  • 2
  • 11
1
vote
1 answer

Composer is not reading my local Satis packages.json file

I have setup my local SVN repo to hold all external repos ( company policy ), using Satis I've created the packages.json file. when I run composer update how do I tell it to use my custom packages.json file and pull from my local repo instead of…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
1
vote
1 answer

Satis - SVN HTTP authentication option

Satis Docs: http://getcomposer.org/doc/articles/handling-private-packages-with-satis.md I see the option for GIT authentication via SSH and SSL but would I wanted to know what about basic HTTP authentication? Does Satis support this and if so…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
1
vote
3 answers

How to give third party libraries in composer.json in Symfony 2.1 and access library in our bundle?

I need to integrate TCPDF as third party library in Symfony 2.1. I tried in composer.json like "repositories": [ { "type": "vcs", "url": "git://tcpdf.git.sourceforge.net/gitroot/tcpdf/tcpdf" } ], "require": { …
Justin John
  • 9,223
  • 14
  • 70
  • 129