Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ public_key.pem
.DS_Store
box.config.php
phpunit.xml
composer.lock
composer.lock
.phpunit.result.cache
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

## Getting Started

Before you can begin working on your PHP code, you'll need to configure your application settings with Box. To start your application configuration, follow these [instructions](https://developer.box.com/v2.0/docs/configuring-box-platform).
Before you can begin working on your PHP code, you'll need to configure your application settings with Box. To start your application configuration, follow these [instructions](https://developer.box.com/guides/authentication/jwt/jwt-setup/).

Make sure to select **OAuth 2.0 with JWT (Server Authentication)** for **Authentication Method**.

For "App Access Level" select "App + Enterprise Access".

Also make sure to give your application the permissions to handle files and folders. For the purpose of the included examples, permission should be given to read and write files and perform actions as users.

After you've created/generated your RSA keypair, download your app configuration JSON file.
Expand All @@ -31,6 +33,11 @@ return array(

Install dependencies (assuming you already have [Composer](https://getcomposer.org/) installed).

NOTE: You need Composer 2.2 LTS installed. During composer install run:
```bash
php composer-setup.php --2.2
```

```bash
composer install
```
Expand Down
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "amsxbg/box-jwt",
"require": {
"guzzlehttp/guzzle": "^7.2",
"firebase/php-jwt": "^5.2",
"laminas/laminas-config": "^3.4",
"laminas/laminas-dependency-plugin": "^2.1"
"guzzlehttp/guzzle": "^7.4",
"firebase/php-jwt": "^6.0",
"laminas/laminas-config": "^3.9",
"laminas/laminas-dependency-plugin": "^2.5"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
Expand All @@ -21,5 +21,10 @@
"classmap": [
"tests/TestCase.php"
]
},
"config": {
"allow-plugins": {
"laminas/laminas-dependency-plugin": true
}
}
}
Loading