balbuf / composer-wp Goto Github PK
View Code? Open in Web Editor NEWManage WordPress core, plugins, and themes with composer.
Manage WordPress core, plugins, and themes with composer.
e.g. "This is My Title" would return "this-is-my-title"
Composer 1.0.0 has introduced a new argument named $bypassFilters
- need to figure out how it is used.
Perhaps also allow custom replacement patterns.
Such as timeout or SSL certificate issues:
[RuntimeException]
SVN Error: Could not retrieve provider listing from https://plugins.svn.wordpress.org
svn: E175002: Unable to connect to a repository at URL 'https://plugins.svn.wordpress.org'
svn: E175002: OPTIONS of 'https://plugins.svn.wordpress.org': Server certificate verification failed: issuer is
not trusted (https://plugins.svn.wordpress.org)
PHP Fatal error: Declaration of BalBuf\ComposerWP\Repository\SVNRepository::search($query, $mode = 0) must be compatible with Composer\Repository\ComposerRepository::search($query, $mode = 0, $type = NULL) in /Users/marc/.composer/vendor/balbuf/composer-wp/src/Repository/SVNRepository.php on line 388
composer-wp is unable to install the REST API plugin. I think this is because it doesn't follow any sort of proper semver convention; it's been releasing betas as 2.0-betaN, where N is now up to 13.
When I try to install the plugin via composer-wp at these versions, it is unable to find them.
The plugin is tagged correctly in the subversion repository and has the proper header structure with the 'Version' plugin header matching, e.g.,
https://plugins.svn.wordpress.org/rest-api/tags/2.0-beta12/plugin.php
When I run the debugger against the code, I put a breakpoint in Repository/Config/Builtin/WordPressPlugins.php
and attempt to break when the 'rest-api' package is fed into filterPackages()
, but it never seems to hit that point, suggesting to me that there's some sort of validation on the version that's happening deeper in the composer core and thus not percolating up to this level of extension.
Here is a composer.json
example file to see:
{
"name": "composer-wp/demo",
"description": "Demo package for testing purposes",
"type": "application","repositories": [ {
"type": "composer",
"url": "https://wp-languages.github.io"
} ],
"require": {
"koodimonni/mu-plugins": "@stable",
"koodimonni-language/eu": "@stable",
"roots/wp-password-bcrypt": ">=1.0.0",
"wcm/wcm-lang-switch": ">=1.7.6",
"wordpress/wordpress": "dev-trunk",
"wp-sync-db/wp-sync-db": "dev-master",
"wp-sync-db/wp-sync-db-media-files": "dev-master",
"wp-sync-db/wp-sync-db-cli": "dev-master"
},
"extra": {
"composer-wp": {
"installer": {
"wp-content-path": "app",
"wordpress-path": "htdocs",
"symlink-wp-content": true,
"mu-plugin-autoloader": true,
"dev-first": true
}
},
"dropin-paths": {
"app/languages": ["vendor:koodimonni-language"],
"app/languages/plugins": ["vendor:koodimonni-plugin-language"],
"app/languages/themes": ["vendor:koodimonni-theme-language"]
}
},
"scripts": {
"pre-cmd": [
"printf \"\\n\\t`tput bold`Install vendors`tput sgr0`\\n\\n\"",
"composer global require balbuf/composer-wp hirak/prestissimo"
],
"pre-install-cmd": "@pre-cmd",
"pre-update-cmd": "@pre-cmd"
},
"license": "MIT",
"minimum-stability": "dev"
}
I want to add some languages mantaining the folder tree defined by wp-content-path
value, but if there are a composer-installer
required in any dependency (like koodimonni/composer-dropin-installer
package), looses precedence and some rules are skipped.
Hi! it would be fantastic to make it work in PHP7:
`Script composer global require "balbuf/composer-wp:>=1.0" handling the pre-cmd event returned with an error
[RuntimeException]
Error Output: Changed current directory to /home/admin/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for balbuf/composer-wp >=1.0 -> satisfiable by balbuf/composer-wp[1.0.0].
- balbuf/composer-wp 1.0.0 requires php ^5.4 -> your PHP version (7.0.3) does not satisfy that r
equirement.
Installation failed, reverting ./composer.json to its original content. `
WP plugins can be zipped with its files directly in the root or within a subfolder. Either will work when installing via the normal WP methods, but for our purposes, we need to get the files out of the subfolder (if applicable) for WP to detect the plugin properly.
make it happen!
Fatal error: Undefined class constant 'DEBUG' in /Users/Oomph/.composer/vendor/balbuf/composer-wp/src/Installer/InstallationManager.php on line 26
Disable password prompt as it is not executed interactively; provide a more appropriate error to the user regarding the SSH authorization issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.