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

Invalid SSL certificate on packagist.org when accessing from mac

When accessing packagist.org from any browser i am getting this warning Your connection is not private Attackers might be trying to steal your information from packagist.org (for example, passwords, messages or credit cards). Learn…
dascorp
  • 183
  • 7
  • 15
0
votes
1 answer

Adding files to GitHub does not update the Releases Assets source code

Using GitHub via a browser, I am failing to create the Releases assets source code zip and tar.gz files that contain my src/filename.php files. Syncing to Packagist appears to work OK, but Composer then not unexpectedly fails to load my source files…
decomplexity
  • 343
  • 2
  • 4
  • 13
0
votes
1 answer

Packagist package - cannot be updated/sync against GitHub

Short question, I dont know where is to look for an answer. I created a php package posted in packagist. Today I created a new release (in the github repo) but the information on packagist.org cannot be updated. The current release is 1.2 , but on…
jcmargentina
  • 181
  • 1
  • 6
0
votes
0 answers

Composer Require Exceeds Memory Limits

I am trying to run composer require and it is giving me this error: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 4096 bytes) in…
L. Fox
  • 328
  • 1
  • 6
  • 20
0
votes
0 answers

multidots/zf3-rest-api no longer exists

I've been using this library for a long time in my project, yesterday i tried to install my project with composer and i found out the package was abandoned on packagist and page was not found on github (404), I'm not sure if this package was deleted…
Lotfi
  • 136
  • 1
  • 6
0
votes
1 answer

Composer will not install my newest tag, but one version older, always

I recently added a package to composer with correct tags and all stuff that needs to make it work. Whenever I try to require this package or update an installation it won't install my earliest tag, but exactly one older. The package can be found…
0
votes
1 answer

Composer autoload - files option and packagist

I've already developed several composer modules which I've published successfully to packagist. All of them are fully class based, and I know how the autoloading process works for those - if multiple projects use my packagist module, they will be…
Sibin Grasic
  • 714
  • 9
  • 27
0
votes
0 answers

Packagist package keeps auto-updating after renaming it (abandon+new)

Packagist does not support package renaming, and the official procedure is rename it in composer, resubmit and abandon the old one. If the old package is abandoned, why it keeps auto-updating versions with new releases from GitHub? Is there a way to…
CarlosAS
  • 654
  • 2
  • 10
  • 31
0
votes
1 answer

Change name of an x Packagist package

I would like to create a package for one of my github repositories on packagist. Now I am offered a name when I submit it. I don't understand how this name is suggested. My name on github is astridx and my first package started with vendor…
astridx
  • 6,581
  • 4
  • 17
  • 35
0
votes
0 answers

How to configure composer to use a specific pull request?

I am using another author's composer package in Packagist where the source code is hosted by GitHub. On GitHub, I performed a pull request, made some changes, and committed the changes. The original author has not yet merged my pull request, and I…
user1032531
  • 24,767
  • 68
  • 217
  • 387
0
votes
1 answer

Unable to search and require private composer package at packagist

I have created a private package at packagist.org under new organisation. Here are the steps i took so far: Developed a lumen package at local instance. Configured composer.json to be used with private composer package. Pushed the local package to…
Gaurav Mehra
  • 471
  • 7
  • 20
0
votes
1 answer

I created laravel package and required my package in other project.I use package trait in project model. But i get this error => Trait not found

I created laravel package and required my package in other project.I use package trait in project model. But i get this error => Symfony\Component\Debug\Exception\FatalErrorException : Trait 'Encryption\Src\Encryptable' not found I loaded…
kablanfatih
  • 473
  • 4
  • 14
0
votes
1 answer

how to set up composer package with packagist

I am trying to set up a composer package but i cannot seem to get it to load when i try it from a new project my package is here https://github.com/shorif2000/pagination and the packgist is here…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

Composer finds a package by search but not by require

I added new package at packagist.org karu/simple-js-localization. When I run composer search with my package name, I can find it but when I run composer required the package is not there. Shell script that I run. composer search…
Karunais13
  • 11
  • 1
0
votes
0 answers

Is there a way to invoke a function (inside of a package) as soon as the package gets installed in the laravel app?

I'm currently developing a simple composer package for a laravel application. The package contains 5 php files and as soon as it gets installed these files should be copied in a new folder inside of the laravel app. To do so I created a new command…
themystery
  • 43
  • 1
  • 1
  • 6