Skip to content

Commit c4f5aca

Browse files
authored
Merge branch 'master' into adding-loginas-with-tests
2 parents bc3c306 + 14be532 commit c4f5aca

32 files changed

+18183
-3053
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: ci
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "**"
10+
env:
11+
NODE_VERSION: 16.17.1
12+
jobs:
13+
check-lock-file-version:
14+
name: NPM Lock File Version
15+
timeout-minutes: 5
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Check NPM lock file version
20+
uses: mansona/npm-lockfile-version@v1
21+
with:
22+
version: 2
23+
build:
24+
runs-on: ubuntu-20.04
25+
timeout-minutes: 30
26+
strategy:
27+
matrix:
28+
include:
29+
- name: PHP 8.1
30+
PHP_VERSION: 8.1
31+
- name: PHP 8.2
32+
PHP_VERSION: 8.2
33+
fail-fast: false
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Use Node.js
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
- name: Setup PHP with PECL extension
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ matrix.PHP_VERSION }}
44+
- name: Cache Node.js modules
45+
uses: actions/cache@v3
46+
with:
47+
path: ~/.npm
48+
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
51+
- run: composer install
52+
- run: npm ci
53+
- run: npm start
54+
- run: npm run lint
55+
- run: npm run test:coverage
56+
- run: npm run document-check
57+
- run: npm run document
58+
env:
59+
CI: true
60+
- run: bash <(curl -s https://codecov.io/bash)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: release-manual-docs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
default: ''
7+
description: 'Version tag:'
8+
jobs:
9+
docs-publish:
10+
if: github.event.inputs.tag != ''
11+
runs-on: ubuntu-20.04
12+
timeout-minutes: 15
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.event.inputs.tag }}
17+
- name: Use Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
- name: Cache Node.js modules
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- name: Generate Docs
29+
run: |
30+
npm ci
31+
npm run document-check
32+
npm run documentation
33+
env:
34+
SOURCE_TAG: ${{ github.event.inputs.tag }}
35+
- name: Deploy
36+
uses: peaceiris/actions-gh-pages@v3.7.3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./.phpdoc/build

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
composer.lock
2+
.DS_Store
33
vendor
44

55
# npm based parse-server-test
@@ -10,12 +10,13 @@ test_logs
1010
# ignore test results
1111
phpunit-test-results
1212
.phpunit.result.cache
13-
13+
.phpunit.cache
1414
*.log
1515

1616
coverage.xml
1717

1818
# ignore phpdoc
1919
output/
20+
.phpdoc/
2021

2122
composer.phar

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
## Parse PHP SDK Changelog
1+
# [2.0.0](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...2.0.0) (2023-04-27)
22

3-
### master
4-
[Full Changelog](https://github.com/parse-community/parse-php-sdk/compare/1.6.0...master)
3+
### Features
4+
5+
* Add support for PHP 8.1, 8.2 ([#489](https://github.com/parse-community/parse-php-sdk/pull/489)) ([d5783e3](https://github.com/parse-community/parse-php-sdk/commit/d5783e3440a2baf9bcc65f829ec107b91ff4c037))
6+
* Add support for `object->exists()` ([#453](https://github.com/parse-community/parse-php-sdk/pull/453)) ([eada867](https://github.com/parse-community/parse-php-sdk/commit/eada867bfa72df4393b5344e97bcb188c4f6ea4f))
7+
8+
### BREAKING CHANGES
9+
10+
- This release requires PHP version >= 8.1.0 ([#489](https://github.com/parse-community/parse-php-sdk/pull/489)) ([d5783e3](https://github.com/parse-community/parse-php-sdk/commit/d5783e3440a2baf9bcc65f829ec107b91ff4c037))
511

612
### 1.6.0
713
[See the diff between 1.5.1 and 1.6.0](https://github.com/parse-community/parse-php-sdk/compare/1.5.1...1.6.0)

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Contributing
22
------------
33

4-
For us to accept contributions you will have to first have signed the
5-
[Contributor License Agreement].
4+
All contributions are under the repository [licence](LICENSE).
65

76
When committing, keep all lines to less than 80 characters, and try to
87
follow the existing style. Before creating a pull request, squash your commits

README.md

Lines changed: 36 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<a href="https://twitter.com/intent/follow?screen_name=parseplatform"><img alt="Follow on Twitter" src="https://img.shields.io/twitter/follow/parseplatform?style=social&label=Follow"></a>
1414
<a href="https://community.parseplatform.org/"><img alt="Join the conversation" src="https://img.shields.io/discourse/https/community.parseplatform.org/topics.svg"></a>
1515
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-BSD-lightgrey.svg"></a>
16-
<a href="https://travis-ci.org/parse-community/parse-php-sdk"><img alt="Build status" src="https://travis-ci.org/parse-community/parse-php-sdk.svg?branch=master"></a>
1716
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="All time downloads" src="https://poser.pugx.org/parse/php-sdk/downloads" /></a>
1817
</p>
1918

@@ -22,57 +21,51 @@
2221
<a href="#backers"><img alt="Backers on Open Collective" src="https://opencollective.com/parse-server/backers/badge.svg" /></a>
2322
<a href="#sponsors"><img alt="Sponsors on Open Collective" src="https://opencollective.com/parse-server/sponsors/badge.svg" /></a>
2423
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="Latest stable version" src="https://poser.pugx.org/parse/php-sdk/v/stable" /></a>
25-
<a href="https://packagist.org/packages/parse/php-sdk"><img alt="Latest unstable version" src="https://poser.pugx.org/parse/php-sdk/v/unstable" /></a>
2624
</p>
2725
<br>
2826

2927
For more information on Parse and its features, see [the website](https://parseplatform.org), [the PHP guide](https://docs.parseplatform.org/php/guide/) or [API Reference](https://parseplatform.org/parse-php-sdk/namespaces/Parse.html).
3028

31-
Please note that this documentation contains the latest changes that may as of yet be unreleased. To see the README for your release please use the list below.
32-
- [1.6.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.6.0/README.md)
33-
- [1.5.1 README](https://github.com/parse-community/parse-php-sdk/blob/1.5.1/README.md)
34-
- [1.4.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.4.0/README.md)
35-
- [1.3.0 README](https://github.com/parse-community/parse-php-sdk/blob/1.3.0/README.md)
36-
3729
## Table of Contents
30+
- [Table of Contents](#table-of-contents)
3831
- [Installation](#installation)
39-
- [Install with Composer](#install-with-composer)
40-
- [Install with Git](#install-with-git)
41-
- [Install with another method](#install-with-another-method)
32+
- [Install with Composer](#install-with-composer)
33+
- [Install with Git](#install-with-git)
34+
- [Install with another method](#install-with-another-method)
4235
- [Setup](#setup)
43-
- [Initializing](#initializing)
44-
- [Server URL](#server-url)
45-
- [Server Health Check](#server-health-check)
46-
- [Http Clients](#http-clients)
47-
- [Alternate CA files](#alternate-ca-file)
36+
- [Initializing](#initializing)
37+
- [Server URL](#server-url)
38+
- [Server Health Check](#server-health-check)
39+
- [Http Clients](#http-clients)
40+
- [Alternate CA File](#alternate-ca-file)
4841
- [Getting Started](#getting-started)
49-
- [Use Declarations](#use-declarations)
50-
- [Parse Objects](#parse-objects)
51-
- [Users](#users)
52-
- [Session Id and Session Fixation](#session-id-and-session-fixation)
53-
- [Verification Emails](#verification-emails)
54-
- [ACLs/Security](#acls)
55-
- [Queries](#queries)
56-
- [Aggregate](#aggregate)
57-
- [Distinct](#distinct)
58-
- [Relative Time](#relative-time)
59-
- [Cloud Functions](#cloud-functions)
60-
- [Cloud Jobs](#cloud-jobs)
61-
- [Config](#config)
62-
- [Analytics](#analytics)
63-
- [Files](#files)
64-
- [Push Notifications](#push)
65-
- [Push to Channels](#push-to-channels)
66-
- [Push with Query](#push-with-query)
67-
- [Push with Audience](#push-with-audience)
68-
- [Push Status](#push-status)
69-
- [Server Info](#server-info)
70-
- [Version](#version)
71-
- [Features](#features)
72-
- [Schema](#schema)
73-
- [Index](#index)
74-
- [Purge](#purge)
75-
- [Logs](#logs)
42+
- [Use Declarations](#use-declarations)
43+
- [Parse Objects](#parse-objects)
44+
- [Users](#users)
45+
- [Session Id and Session Fixation](#session-id-and-session-fixation)
46+
- [Verification Emails](#verification-emails)
47+
- [ACLs](#acls)
48+
- [Queries](#queries)
49+
- [Aggregate](#aggregate)
50+
- [Distinct](#distinct)
51+
- [Relative Time](#relative-time)
52+
- [Cloud Functions](#cloud-functions)
53+
- [Cloud Jobs](#cloud-jobs)
54+
- [Config](#config)
55+
- [Analytics](#analytics)
56+
- [Files](#files)
57+
- [Push](#push)
58+
- [Push to Channels](#push-to-channels)
59+
- [Push with Query](#push-with-query)
60+
- [Push with Audience](#push-with-audience)
61+
- [Push Status](#push-status)
62+
- [Server Info](#server-info)
63+
- [Version](#version)
64+
- [Features](#features)
65+
- [Schema](#schema)
66+
- [Index](#index)
67+
- [Purge](#purge)
68+
- [Logs](#logs)
7669
- [Contributing / Testing](#contributing--testing)
7770

7871
## Installation

autoload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* You only need this file if you are not using composer.
55
*/
66

7-
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
8-
throw new Exception('The Parse SDK requires PHP version 5.4 or higher.');
7+
if (version_compare(PHP_VERSION, '8.1.0', '<')) {
8+
throw new Exception('The Parse SDK requires PHP version 8.1 or higher.');
99
}
1010

1111
/*

composer.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">= 7.1",
15+
"php": ">=8.1 <8.3",
1616
"ext-curl": "*",
1717
"ext-json": "*"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "7",
21-
"squizlabs/php_codesniffer": "3.6.0",
22-
"phpdocumentor/phpdocumentor": "2.9",
23-
"jms/serializer": "1.7.1"
20+
"phpunit/phpunit": "10.1.1",
21+
"squizlabs/php_codesniffer": "3.7.2",
22+
"phpdocumentor/phpdocumentor": "3.0.0",
23+
"jms/serializer": "1.7.1",
24+
"nikic/php-parser": "4.15"
2425
},
26+
"minimum-stability": "dev",
2527
"autoload": {
2628
"psr-4": {
2729
"Parse\\": "src/Parse/"
@@ -31,5 +33,10 @@
3133
"psr-4": {
3234
"Parse\\Test\\": "tests/Parse/"
3335
}
36+
},
37+
"config": {
38+
"allow-plugins": {
39+
"symfony/flex": true
40+
}
3441
}
3542
}

0 commit comments

Comments
 (0)