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

Getting error message "Class 'Foo' not found" when implement Class from adding package(TAD-PHP), downloaded via composer

I downloaded the package named "TAD-PHP" from Packagist via composer to use in my project at Laravel, but the package has no default service provider. So, I cant to register that package and cant make the alias. In local, everything is fine. I can…
Habie Smart
  • 139
  • 1
  • 9
0
votes
1 answer

How can i use packagist file to my controller?

I have added one packagist now how can i use that to my controller? I have used my composer command but i added to vendor folder now how to access that file? composer require jainam/basic-functions I want to use my functions of that file to my…
Jainam Shah
  • 204
  • 1
  • 9
0
votes
1 answer

How do I get my GitLab project to auto-update on Packagist.org?

I have posted my libre software GitLab project on Packagist, and this succeeded but Packagist indicates next to its name that it "Does not auto-update". It does not say how to make it so it automatically updates.
mlncn
  • 3,308
  • 2
  • 23
  • 20
0
votes
1 answer

Why is Imported class not found in PHP file?

I'm attempting to use a class from a repository I installed from packagist with composer. The PHP file I'm writing is under my Project folder, along with the repository which is in Project>vendor. include "Project/vendor/autoload.php"; include…
atlas cube
  • 47
  • 1
  • 1
  • 6
0
votes
1 answer

Packagist skipped branch ending in -dev, complaining that is does not end in -dev

Here's the error I get from packagist when updating a pacakge: Importing branch 2.x-dev (dev-2.x-dev) Skipped branch 2.x-dev, Invalid package information: extra.branch-alias.dev-master : the target branch (2.x) must end in -dev The branch is…
aaronbauman
  • 3,549
  • 2
  • 24
  • 30
0
votes
0 answers

Composer Install Dependency into Subdirectory

Been banging my head against this one, and would hugely appreciate some advice, please. I own two packages, and would like the dependency to install into a subdirectory of the main package, rather than into the vendor directory. A subsequent…
Sundance.101
  • 404
  • 3
  • 10
0
votes
1 answer

Module uploaded to packagist but can not install via terminal

I have uploaded one of my magento 2 extension to github and submitted on packagist.Now when i am trying to install the same via command line,I can not install and getting error. Please have a look over the attached screen-shot
Andrew Smith
  • 397
  • 2
  • 17
0
votes
1 answer

Why I can't use composer require {packageName} successfully?

I'm learn how to create Laravel packages, And I wrote a package here: noahprot/fillindata Then I submit it to packagist And I have set a lastest release in github And the Packagist show like this: Already show the latest release Then I use Laravel…
Neo Lee
  • 29
  • 3
0
votes
1 answer

Composer is not picking up my release from Packagist

I released a first version of my composer package on GitHub and submitted it on Packagist, however composer update doesn't work several hours ago. "require": { "xolens/pglarautil": "1.0.0", "xolens/larautil-contract": "1.0.0", …
Polla Toube
  • 178
  • 3
  • 10
0
votes
0 answers

Composer package requires the wrong version of a dependency package

I have just uploaded my composer package to github and created a package page on packagist.org. My package requires another package to work properly and it is written in the package's composer.json to use "vendor/package": "^0.0.1". However, the…
Emil Avramov
  • 881
  • 5
  • 21
  • 38
0
votes
1 answer

Laravel persistent error after upgrade

Warning: require(/customers/3/5/2/manudahmen.be/httpd.www/tetede.co/vendor/composer/../../src/Illuminate/Foundation/helpers.php): failed to open stream: No such file or directory in…
Obi Two
  • 1
  • 1
  • 5
0
votes
1 answer

Satis - How to only include the "dist" downloads

We've started to use Satis for a private composer repository. All is going well - except something which we cannot figure out. -- When we run the satis build - it generates the json and the zips to download. Our config resembles something like { …
owenmelbz
  • 6,180
  • 16
  • 63
  • 113
0
votes
1 answer

How can I edit package Laravel then submit on Packagist

I found on the Packagist an package which make save my time to create CRUD features using artisan console. But it do not fit me perfectly, I want to re-edit it and publish to Packagist for personal use only. I will put a copyright in Readme file.…
Nguyen Hoang
  • 540
  • 5
  • 25
0
votes
1 answer

Composer does not show package version

I can't find the recently published version 2.4.1 of my package: amk@orange ~$ composer clearcache Cache directory does not exist (cache-vcs-dir): Clearing cache (cache-repo-dir): /home/amk/.cache/composer/repo Clearing cache (cache-files-dir):…
Alex
  • 32,506
  • 16
  • 106
  • 171
0
votes
0 answers

Why composer -vvv install/update always downloads all packages from packagist?

I created an empty composer file. Then I removed the folder .composer from my home directory. The composer.JSON looks like this now: { "name": "name/test", "require": {} } When I run to install or update it starts to download all assets…
Anthony
  • 3,218
  • 3
  • 43
  • 73