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

Best approach to merging Laravel and Wordpress in one project

i am trying to merge Laravel and Wordpress together in one project.. the way i want it to work is, for Laravel to handle the Database Interactions and complex iterations going on on the site.. while Wordpress is used to handle the static contents,…
Ande Caleb
  • 1,163
  • 1
  • 14
  • 35
0
votes
2 answers

I can' load my vendor in the symfony app kernel

i have created a vendor on github, and make it in packagist, load this in composer successfully, and perfectly installed in my vendor/company/nameBundle/ , but now i need to load it on the app/AppKernel.php of symfony, but it return me a 404 not…
0
votes
1 answer

Packagist.org: what does it mean when a package has a version number like: 4.4.x-dev?

When browsing the packagist.org repositories you see packages with these version numbers e.g. If you look at the Phpunit repo There are a few instances 4.5.x-dev 4.3.x-dev 4.2.x-dev Do these packages contain the current work the developers are…
the_velour_fog
  • 2,094
  • 4
  • 17
  • 29
0
votes
1 answer

composer create-project - command donot work

I have my project on github containing composer.json in the root directory. This is how my composer.json code looks like: { "name": "vendor/projectname", "description": "My first Composer project", "authors": [ { …
Ruprit
  • 733
  • 1
  • 6
  • 23
0
votes
2 answers

How can I publish stable version with composer

How can I publish stable version? For example, developers of Yii2 framework have stable versions on composer, but in their repository I can't find matches with their branches on repository. How do they publish stable versions? when I publish my work…
user2468946
  • 31
  • 1
  • 6
0
votes
1 answer

How to use GlobeAPI to Cakephp 3

Right now, I am studying migration from 2.x to Version 3 of CakePHP. I have developed a simple sending of sms using GlobeLabs API (one of available SMS Gateway in the Philippines). https://github.com/globelabs/api Right now, I know what's the…
bowmeow
  • 109
  • 1
  • 11
0
votes
1 answer

How do I use a Laravel package created by me in production?

I'm writing an app using Laravel 4.2. This time, I needed some extra functionality and I decided to create a package. I used the workbench functionality as described in Laravel's docs. Currently (and locally), the package is very small but it suits…
Mauro
  • 3,946
  • 2
  • 27
  • 41
0
votes
1 answer

Use TermExtractor in Laravel 5

I would like to use a library called term-extractor (https://packagist.org/packages/fivefilters/term-extractor) in Laravel 5. I tried to install it via composer with composer require "fivefilters/term-extractor:*" I think, this step was sucessfull…
carl
  • 57
  • 1
  • 1
  • 5
0
votes
3 answers

Having trouble installing barryvdh/laravel-ide-helper via composer - class not found error in Laravel 4 project

I have the following composer.json file for my Laravel 4.2.x project: { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require":…
Latheesan
  • 23,247
  • 32
  • 107
  • 201
0
votes
2 answers

Creating package on Packagist and the package installation path

I have created a yii2 extension. It is a Yii2 widget. I created a GitHub repository for it. After some issues with composer.json I have, successfully, to this Packagist package. Now I could able to install it using composer in any yii2 appliaction…
SaidbakR
  • 13,303
  • 20
  • 101
  • 195
0
votes
1 answer

Bitbucket host key verification issue on Packagist

I have a public repository on Bitbucket and I would like to submit it to Packagist for composer purpose. However, after entering git url and submitting, The error is showing up: Uncaught Exception: [RuntimeException] Failed to execute git clone…
Ali Emre Çakmakoğlu
  • 864
  • 2
  • 12
  • 24
0
votes
1 answer

The autoload section of a composer.json file

I have created a composer library. I have one folder: Models Inside that is 1 file, it has a namespace declared TestJames In my composer.json file I have: "autoload": { "psr-0": { "TestJames": "Models/" } } Firstly, I have no idea what the…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
0
votes
1 answer

Get package latest version from packagist.org

I'm trying to get the latest stable version for composer packages from packagist.org, for example https://packagist.org/packages/doctrine/cache. The best way i found is to get a json response using https://packagist.org/packages/doctrine/cache.json,…
amitdar
  • 917
  • 3
  • 13
  • 35
0
votes
1 answer

packagist / composer - Assign a version number

I have people using my pacakgist library. I want to make sure that their composer.json version requirement stated as "dev-master" will not get updated when they run composer update... as I have changed the underlying architecture of the…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
0
votes
1 answer

Laravel 5 : artisan workbench : illuminate/support could not be found

I'm trying to create a new package with php artisan workbench vendor/packagename but when I run it I get Package workbench created! Loading composer repositories with package information Installing dependencies (including require-dev) Your…
Sebastian Sulinski
  • 5,815
  • 7
  • 39
  • 61