Skip to content

Commit

Permalink
build: create composer.json and .jane-openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Aug 13, 2023
1 parent c43d2a9 commit c8e6038
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
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
10 changes: 10 additions & 0 deletions .jane-openapi
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,
];
59 changes: 59 additions & 0 deletions composer.json
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"
}

0 comments on commit c8e6038

Please sign in to comment.