wp-graphql-cors icon indicating copy to clipboard operation
wp-graphql-cors copied to clipboard

Composer

Open travis-r6s opened this issue 3 years ago • 4 comments

Would it be possible to publish this package to composer, so it can be used with projects like Bedrock?

travis-r6s avatar Sep 10 '20 15:09 travis-r6s

@kidunot89 want to do this? I don't use composer.

drewbaker avatar Apr 30 '21 11:04 drewbaker

@drewbaker just checking on this, it would be great to have this feature

web-programmer-here avatar Sep 17 '21 22:09 web-programmer-here

@drewbaker just checking on this, it would be great to have this feature

I don't really use composer (or PHP much these days really) so I'm the wrong person to do this, but I'm open to a PR for it.

drewbaker avatar Sep 18 '21 02:09 drewbaker

you can just create a composer.json in the root of the repo, something like this

{
    "name": "funkhaus/wp-graphql-cors",
    "description": "Makes WP GraphQL's authetication just work. It does this by customizing the CORS headers.",
    "type": "wordpress-plugin",
    "require": {
       "php": "^7.1 || ^8.0",
        "composer/installers": "~1.0"
    }
}

if you add this maybe I can test it and see if I can install the plugin using composer

web-programmer-here avatar Sep 18 '21 03:09 web-programmer-here

https://github.com/funkhaus/wp-graphql-cors/pull/36

drewbaker avatar Feb 05 '23 16:02 drewbaker