Giter Club home page Giter Club logo

composer-wp's People

Contributors

balbuf avatar inoreneroni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

composer-wp's Issues

Add additional attempts upon SVN errors

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)

Error when using composer-wp on PHP 7.2.1

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

Can't install REST-API plugin due to naming convention

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.

wp-languages.github.io support

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.

PHP 7 support

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. `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.