-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: create composer.json and .jane-openapi
- Loading branch information
1 parent
c43d2a9
commit c8e6038
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'directory' => __DIR__ . '/lib', | ||
'namespace' => 'Braze', | ||
'openapi-file' => 'https://raw.githubusercontent.com/braze-community/braze-specification/master/openapi/spec.json', | ||
'use-fixer' => true, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": "[email protected]", | ||
"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" | ||
} |