diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33c8de0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Composer files +/vendor/ +composer.lock +composer.phar + +# PHPUnit +.phpunit.result.cache + +# PHP CS Fixer +.php-cs-fixer.cache + +# Vim swap files +*.swp + +# Mac OS +.DS_Store diff --git a/.jane-openapi b/.jane-openapi new file mode 100644 index 0000000..19c8dca --- /dev/null +++ b/.jane-openapi @@ -0,0 +1,10 @@ + __DIR__ . '/lib', + 'namespace' => 'Braze', + 'openapi-file' => 'https://raw.githubusercontent.com/braze-community/braze-specification/master/openapi/spec.json', + 'use-fixer' => true, +]; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..cf5eabe --- /dev/null +++ b/composer.json @@ -0,0 +1,59 @@ +{ + "name": "braze/sdk", + "type": "library", + "description": "Track users, send messages, export data, and more with Braze API.", + "keywords": [ + "braze", + "api", + "sdk", + "rest", + "appboy", + "php" + ], + "homepage": "https://github.com/braze-community/braze-php", + "license": "MIT", + "authors": [ + { + "name": "Mark", + "email": "mark@remarkablemark.org", + "homepage": "https://remarkablemark.org", + "role": "Developer" + } + ], + "require": { + "jane-php/open-api-runtime": "^7.5", + "php": ">=7" + }, + "require-dev": { + "jane-php/open-api-3": "^7.5", + "nyholm/psr7": "^1.8", + "friendsofphp/php-cs-fixer": "^3.22", + "pestphp/pest": "^1.23", + "php-http/guzzle7-adapter": "^1.0" + }, + "config": { + "allow-plugins": { + "php-http/discovery": true, + "pestphp/pest-plugin": true + } + }, + "autoload": { + "psr-4": { + "Braze\\": "lib/" + } + }, + "scripts": { + "build": [ + "@php vendor/bin/jane-openapi generate", + "cp -r src/ lib/" + ], + "clean": [ + "rm -rf lib/" + ], + "test": [ + "composer dumpautoload", + "@php vendor/bin/pest" + ] + }, + "version": "1.0.0-alpha" +}