Hello devs
After way too much time, we finally managed to get the composer-based plugin repository for Roundcube up and running. It's a clone of the packagist.org website with some modifications for managing Roundcube plugins.
We also built a custom composer installer module that will install plugins to the right location and will also activate them right away in Roundcube's main config file if desired.
Now it's time to fill up the repository with your plugins! Thus all plugin developers are kindly invited to register their plugins at http://plugins.roundcube.net
In order to do so, you need to put each plugin into an individual SVN or GIT repository and write a composer.json file which contains the meta data of your plugin. Once this is done, please register at plugins.roundcube.net and submit your plugin by adding the URL to the source repository. It's as simple as that. More detailed instructions how to publish plugins and how a composer.json files needs to look like can be found on the http://plugins.roundcube.net site.
Please note that the new plugin repisitory is still in beta testing and not officially launched. We're still working on improvements such as a plugin browsing page and more features of the installer (e.g. post-install and post-update scripts as well as automatic database schema upgrades). So stay tuned.
Best, Thomas
Hi,
I think I've followed the instructions on the front of plugins.roundcube.net correctly. My composer.json file is attached, composer version:
phil@ghost:<rc root># php composer.phar -V Composer version 823ca21e6cf9c4f4c7a13060e678e7ad32cc40a4
But when I run composer it fails....
phil@ghost:<rc root># php composer.phar install Loading composer repositories with package information Installing dependencies
PHP Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar://<rc root>/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar://<rc root>/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
I'm running PHP 5.3 and it does create the plugin-installer files in <rc root>/vendor/roundcube/plugin-installer/src/RoundCube/Composer/PluginInstall er.php.
Does anyone know what I might have done wrong?
Thanks,
Phil
-----Original Message----- From: dev-bounces@lists.roundcube.net [mailto:dev- bounces@lists.roundcube.net] On Behalf Of Thomas Bruederli Sent: 28 April 2013 13:20 To: Roundcube Dev Subject: [RCD] plugins.roundcube.net ready for testing
Hello devs
After way too much time, we finally managed to get the composer-based plugin repository for Roundcube up and running. It's a clone of the packagist.org website with some modifications for managing Roundcube plugins.
We also built a custom composer installer module that will install plugins to the right location and will also activate them right away in
Roundcube's
main config file if desired.
Now it's time to fill up the repository with your plugins! Thus all plugin developers are kindly invited to register their plugins at http://plugins.roundcube.net
In order to do so, you need to put each plugin into an individual SVN or GIT repository and write a composer.json file which contains the meta data of your plugin. Once this is done, please register at
plugins.roundcube.net
and submit your plugin by adding the URL to the source repository. It's as simple as that. More detailed instructions how to publish plugins and how
a
composer.json files needs to look like can be found on the http://plugins.roundcube.net site.
Please note that the new plugin repisitory is still in beta testing and
not
officially launched. We're still working on improvements such as a plugin browsing page and more features of the installer (e.g. post-install and post-update scripts as well as automatic database schema upgrades). So
stay
tuned.
Best, Thomas _______________________________________________ Roundcube Development discussion mailing list dev@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/dev
Phil Weir wrote:
Hi,
I think I've followed the instructions on the front of plugins.roundcube.net correctly. My composer.json file is attached, composer version:
phil@ghost:<rc root># php composer.phar -V Composer version 823ca21e6cf9c4f4c7a13060e678e7ad32cc40a4
But when I run composer it fails....
phil@ghost:<rc root># php composer.phar install Loading composer repositories with package information Installing dependencies
- Installing roundcube/plugin-installer (dev-master 0.1.2) Cloning 0.1.2
PHP Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar://<rc root>/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
I'm running PHP 5.3 and it does create the plugin-installer files in <rc root>/vendor/roundcube/plugin-installer/src/RoundCube/Composer/PluginInstall er.php.
Does anyone know what I might have done wrong?
Never had that issue and I'm also unable to reproduce. Seems like an autoloading issue. What version of PHP are you using?
~Thomas
Never had that issue and I'm also unable to reproduce. Seems like an autoloading issue. What version of PHP are you using?
PHP 5.3.3-7+squeeze15 with Suhosin-Patch (cli) (built: Mar 4 2013 14:05:25) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
~Thomas
Roundcube Development discussion mailing list dev@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/dev
Never had that issue and I'm also unable to reproduce. Seems like an autoloading issue. What version of PHP are you using?
I tried with PHP 5.4.4 as well and got the same errors
PHP 5.4.4-14 (cli) (built: Mar 4 2013 15:49:04) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
I was thinking about what what you said about the autoloader. I do not
have a vendor/autoload.php file in my RC root so I tried using php composer.phar dumpautoload
which creates one but it makes no difference
to the error.
Phil
On Fri, May 10, 2013 at 4:31 PM, Phil Weir roundcube@tehinterweb.co.uk wrote:
Never had that issue and I'm also unable to reproduce. Seems like an autoloading issue. What version of PHP are you using?
I tried with PHP 5.4.4 as well and got the same errors
PHP 5.4.4-14 (cli) (built: Mar 4 2013 15:49:04) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
I was thinking about what what you said about the autoloader. I do not have a vendor/autoload.php file in my RC root so I tried using
php composer.phar dumpautoload
which creates one but it makes no difference to the error.
OK, I found the reason for this issue and fixed it. See https://github.com/roundcube/plugin-installer/issues/1 With the latest version of the roundcube-installer from the repository it should now work.
~Thomas
OK, I found the reason for this issue and fixed it. See https://github.com/roundcube/plugin-installer/issues/1 With the latest version of the roundcube-installer from the repository it should now work.
Yep it's working now. Thanks.
Phil
Am 28.04.2013 17:55, schrieb Phil Weir:
phil@ghost:<rc root># php composer.phar install Loading composer repositories with package information Installing dependencies
- Installing roundcube/plugin-installer (dev-master 0.1.2)
Cloning 0.1.2
PHP Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar://<rc root>/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar://<rc root>/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
I'm running PHP 5.3 and it does create the plugin-installer files in <rc root>/vendor/roundcube/plugin-installer/src/RoundCube/Composer/PluginInstall er.php.
Same Issue here. Using Ubuntu 12.04 with latest patches.
root@www:/var/www/roundcubemail-0.9.0# php -v PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
Btw. Which composer.json do I have to use for stable 0.9.0 ? In the release tarball there's no composer.json-dist ... For my tests I have used the composer.json from roundcube master branch with this require section:
"require" : { "pear-pear/Mail_Mime": ">=1.8.1", "pear-pear/Mail_mimeDecode": ">=1.5.5", "Net_SMTP": "dev-master", "pear-pear/Net_IDNA2": ">=0.1.1", "pear-pear/Auth_SASL": ">=1.0.6", "roundcube/plugin-installer": "dev-master" "cor/dovecot_impersonate": "dev-master", "cor/listcommands": "dev-master", "johndoh/contextmenu": "dev-master", "sblaisot/topline": "dev-master" },
root@www:/var/www/roundcubemail-0.9.0# php composer.phar install Loading composer repositories with package information Initializing PEAR repository http://pear.php.net Installing dependencies
Cloning 0.1.2
PHP Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar:///var/www/roundcubemail-0.9.0/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
Fatal error: Class 'Roundcube\Composer\PluginInstaller' not found in phar:///var/www/roundcubemail-0.9.0/composer.phar/src/Composer/Installer/InstallerInstaller.php on line 101
Regards, Tobias Hachmer