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

How to check if your project name is available on packagist.org

I am trying to put up my first php project on packagist.org but my vendor name is already taken. I have already pushed a tagged release to github; now I have to modify my composer file without creating a new git tag which isn't as simple as just…
Yega
  • 356
  • 5
  • 10
3
votes
1 answer

Why isn't Composer able to find/install my package for Laravel 5.2?

I am using Laravel 5.2.23 and am unable to pull in my new package, bsapaka/metattribute. I get the exception: [InvalidArgumentException] Could not find package bsapaka/metattribute at any version for your minimum-stability (stable). Check the…
brietsparks
  • 4,776
  • 8
  • 35
  • 69
3
votes
0 answers

Packagist: New releases from GitHub do not show up in Packagist

I have my own PHP/Composer repo on GitHub and have it published on packagist.org. Everything is fine so far. The Webservice is correctly configured and several versions have already been published. But now I have the problem that when I try to…
Xenonite
  • 1,823
  • 4
  • 26
  • 39
3
votes
1 answer

packagist laravel package -composer Could not find package

I have created package using Laravel. The composer.json file for my package will look like this { "name": "lakshmajim/testview", "description": "hi", "keywords": [ "package" ], "homepage": "https://github.com/lakshmajim/testview", "license":…
Lakshmaji
  • 899
  • 2
  • 14
  • 30
3
votes
1 answer

Composer Package not found

I have a git repo https://github.com/hounded/FPDFbundle I have added it to packagist https://packagist.org/packages/hounded/fpdfbundle You can see the composer.json at the git repo { "name" : "hounded/fpdfbundle", "description" : "A pdf…
hounded
  • 666
  • 10
  • 21
3
votes
1 answer

How to integrate in Laravel 5 a Package from Packagist?

I'm working with laravel 5 and trying to integrate the following package: exacttarget/fuel-sdk-php I executed on my project: composer require exacttarget/fuel-sdk-php So I had on my vendor dir exacttarget provider. First thing I've noticed this…
koalaok
  • 5,075
  • 11
  • 47
  • 91
3
votes
1 answer

Travis.ci: "composer requirements could not be resolved" but everything works locally (Yii2)

I'm building a package for Yii2 Framework. Locally everything works just fine: tests are green, composer installs / updates dependencies with no problems (I've tried on several machines with different development environments and no problems at…
Armen Markossyan
  • 1,214
  • 1
  • 12
  • 25
3
votes
2 answers

Composer: no matching package found

I create a widget that is under development. The problem is that when I run: composer require chofoteddy/yii2-bootstrap-wizard "*" I get the following message: Your requirements could not be resolved to an installable set of packages. Problem 1 …
Chofoteddy
  • 747
  • 9
  • 22
3
votes
1 answer

What are some reasons why Composer will fail to connect to packagist through http, if not behind a firewall or proxy?

I have been trying to use Composer on Centos 5.5. I managed to install it, but composer install gets me nowhere, yielding: Loading composer repositories with package information [Composer\Downloader\TransportException] …
Amina
  • 90
  • 2
  • 12
3
votes
1 answer

How to make Satis package dependencies install from packagist

I've successfully set up Satis on my own server and am able to pull in packages from it. However, dependencies that are required in those private packages are constantly being cloned at their bleeding edge version instead of the specified version…
Propaganistas
  • 1,674
  • 1
  • 17
  • 40
3
votes
1 answer

Autoloading Php Packages with Hyphens

Packagist does not allow package names to have capital letters. To workaround this, it recommends using hyphens -. Thus my package name went from TableCreator to table-creator. Unfortunately, this seems to have prevented my library from autoloading…
Programster
  • 12,242
  • 9
  • 49
  • 55
3
votes
1 answer

Composer VCS Different Directory Name

When using Composer to load a package from a VCS repository, is there a way to specify which folder to install the contents in to (similar to git clone )? For example the repo is: https://github.com/organization/plugin_name.git And thus…
timmyg
  • 181
  • 1
  • 14
3
votes
2 answers

Composer create-project: Working with forked repository

I am using awesome Wordpress stack Bedrock from Roots.IO for my Wordpress projects. I created a fork from the original repository with a slight customizations to my specific situation, as the developers encourage us to do in their README…
Petr Cibulka
  • 2,452
  • 4
  • 28
  • 45
3
votes
1 answer

Composer, Github, Packagist inquiry

Today, I've putted my first project on Github and Packagist and I have a couple of questions on using both of them combined. Be aware that I am still unexperienced it this domain. Composer documentation is vast in teaching how to get the…
Mario Legenda
  • 749
  • 1
  • 11
  • 24
3
votes
1 answer

Laravel QR Codes: endroid/QrCode, how to use it?

I would like to use a QR-Code generator with my Laravel 4.1 application. I am currently choosing between https://github.com/endroid/QrCode and https://github.com/endroid/EndroidQrCodeBundle. To be honest though, neither appear to have any…
LoveAndHappiness
  • 9,735
  • 21
  • 72
  • 106