funkhaus / wp-graphql-cors

Makes WP GraphQL's authetication "just work". It does this by customizing the CORS headers.
GNU General Public License v3.0
112 stars 21 forks source link

Composer #18

Closed travis-r6s closed 1 year ago

travis-r6s commented 4 years ago

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

drewbaker commented 3 years ago

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

web-programmer-here commented 3 years ago

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

drewbaker commented 3 years ago

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

web-programmer-here commented 3 years ago

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

drewbaker commented 1 year ago

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