Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.1 - Add Support for Phalcon V5 and PHP 8 #1532

Open
wants to merge 26 commits into
base: 5.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
45bffd1
New code generation (#1520)
BeMySlaveDarlin Sep 18, 2021
5ff351a
Updated composer packages
Oct 3, 2021
6d2bb9e
Merge pull request #1523 from BeMySlaveDarlin/f/composer-lock-update
Jeckerson Oct 19, 2021
b3ee2d3
fix depenencies to work with PHP 8.X
jesusfreak3 Jan 17, 2023
547c8fe
update v4 classes to v5 , config, validation, url
jesusfreak3 Jan 17, 2023
d6ede41
update text class to helperfactory to meet V5 req
jesusfreak3 Jan 17, 2023
01b63e5
do not set rootPath if path is null
jesusfreak3 Jan 17, 2023
3922dfd
replace phalconException class with exception as per V5
jesusfreak3 Jan 17, 2023
f829e55
update cache class as per v5 req
jesusfreak3 Jan 17, 2023
6d6aa9f
update di class as per v5 req
jesusfreak3 Jan 17, 2023
e4da721
update phalcon escaper class as per v5 req
jesusfreak3 Jan 17, 2023
15f6881
update filter class as per v5 req
jesusfreak3 Jan 17, 2023
ec23eab
update loader class as per v5 req
jesusfreak3 Jan 17, 2023
dca9555
update logger class as per v5 req
jesusfreak3 Jan 17, 2023
23ae20b
update registry class as per v5 req
jesusfreak3 Jan 17, 2023
bd39b6b
update changelog
jesusfreak3 Jan 17, 2023
8d9e28c
update phalcon migrations to V3
jesusfreak3 Jan 17, 2023
0cfb316
fix typo in version
jesusfreak3 Jan 17, 2023
2c4c4eb
update tests php and phalcon version
jesusfreak3 Jan 17, 2023
89492ea
update tests php and phalcon version
jesusfreak3 Jan 17, 2023
268a918
update versions in readme
jesusfreak3 Jan 17, 2023
745c6c4
update dev tool version to 5.0.0
jesusfreak3 Jan 17, 2023
06e6d36
update release phar to use php 8 and phalcon 5
jesusfreak3 Jan 17, 2023
abb77be
remove accidental add of composer.phar
jesusfreak3 Jan 18, 2023
c72f263
add ignore of composer.phar
jesusfreak3 Jan 18, 2023
17a355a
update composer to support php 8.0 and php 8.1
jesusfreak3 Jan 19, 2023
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
8 changes: 4 additions & 4 deletions .github/workflows/release-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ name: Append phalcon.phar to release
jobs:
build:
name: Compile and upload Phar
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set PHP 7.2
- name: Set PHP 8.0
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
extensions: phalcon-4.0.5
php-version: '8.0'
extensions: phalcon-5.0.1

- name: Compile phalcon.phar
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: "Tests"

jobs:
run-tests:
name: PHP ${{ matrix.php-versions }}
name: PHP ${{ matrix.php-versions }} with Phalcon ${{ matrix.phalcon-versions }}
runs-on: ubuntu-latest

env:
extensions: mbstring, intl, json, zip, phalcon-4.0.5, mysql, pgsql, xdebug-2.9.8
extensions: mbstring, intl, json, zip, phalcon-${{ matrix.phalcon-versions }}, mysql, pgsql, xdebug-2.9.8
key: cache-v2.0~19.03.2020

services:
Expand All @@ -32,7 +32,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: [ '7.2', '7.3', '7.4' ]
php-versions: ['8.0', '8.1']
phalcon-versions: ['5.0.1']
steps:
- uses: actions/checkout@v1

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore

/vendor
composer.phar
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# [5.0.1](https://github.com/phalcon/cphalcon/releases/tag/v5.0.1)
## Changed
- Update composer dependencies to require and support with 8.0
- Updated phalcon v4 classes for v5 replacements
- Removed support for PHP 7.X

# [4.3.0](https://github.com/phalcon/cphalcon/releases/tag/v4.3.0)
## Changed
- Changed code generation to external implementation [1455](https://github.com/phalcon/phalcon-devtools/issues/1455)
- Updated composer packages [1523](https://github.com/phalcon/phalcon-devtools/pull/1523)

# [4.2.0](https://github.com/phalcon/cphalcon/releases/tag/v4.2.0)
Supported PHP Versions: 7.3, 7.4, 8.0

This release provides initial PHP 8 and Phalcon 5 support.
## Fixed
- Fixed Phalcon\Version class not found error in Phalcon 5 [1515](https://github.com/phalcon/phalcon-devtools/issues/1515)

# [4.1.0](https://github.com/phalcon/cphalcon/releases/tag/v4.1.0)
## Fixed
- Fixed column annotation bugs on model creation [1425](https://github.com/phalcon/phalcon-devtools/issues/1425)
Expand Down
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Phalcon Devtools

[![codecov](https://codecov.io/gh/phalcon/phalcon-devtools/branch/4.0.x/graph/badge.svg)](https://codecov.io/gh/phalcon/phalcon-devtools)
[![codecov](https://codecov.io/gh/phalcon/phalcon-devtools/branch/5.0.x/graph/badge.svg)](https://codecov.io/gh/phalcon/phalcon-devtools)
[![Latest Version](https://img.shields.io/packagist/v/phalcon/devtools.svg?style=flat-square)][:devtools:]
[![Software License](https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square)][:license:]
[![Total Downloads](https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square)][:packagist:]
Expand All @@ -21,8 +21,8 @@ with Phalcon framework.

## Requirements

* PHP >= 7.2
* Phalcon >= 4.0.0
* PHP >= 8.0
* Phalcon >= 5.0.1

## Installing via Composer

Expand All @@ -37,17 +37,7 @@ Create the composer.json file as follows:
```json
{
"require-dev": {
"phalcon/devtools": "~4.1"
}
}
```

If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead:

```json
{
"require-dev": {
"phalcon/devtools": "^3.4"
"phalcon/devtools": "~5.0.0"
}
}
```
Expand Down Expand Up @@ -115,7 +105,7 @@ This command should display something similar to:
```sh
$ phalcon --help

Phalcon DevTools (4.1.0)
Phalcon DevTools (5.0.0)

Help:
Lists the commands available in Phalcon DevTools
Expand All @@ -124,6 +114,7 @@ Available commands:
info (alias of: i)
commands (alias of: list, enumerate)
controller (alias of: create-controller)
task (alias of: create-task)
module (alias of: create-module)
model (alias of: create-model)
all-models (alias of: create-all-models)
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@
"forum": "https://forum.phalcon.io"
},
"require": {
"php": ">=7.2",
"php": ">=8.0",
"ext-pdo": "*",
"ext-phalcon": "^4.0.0",
"ext-json": "*",
"ext-phalcon": ">=5.0.1",
"psy/psysh": "~0.9",
"nikic/php-parser": "^4.2.4",
"phalcon/migrations": "^2.0",
"vlucas/phpdotenv": "^3.6|^4.0|^5.0"
"phalcon/migrations": "^3.0",
"vlucas/phpdotenv": "^3.6|^4.0|^5.0",
"nette/php-generator": "^3.5",
"roave/better-reflection": "^5.10.0|^6.1.0"
},
"require-dev": {
"humbug/box": "^3.8",
"humbug/box": "^3.16|^4.1",
"codeception/codeception": "^4.1",
"phpdocumentor/reflection-docblock": "^4.3",
"phpdocumentor/reflection-docblock": "^5.3|^6.2",
"phpunit/phpunit": "^8.0",
"codeception/specify": "^1.2",
"codeception/verify": "^1.2",
Expand Down Expand Up @@ -62,5 +65,7 @@
"tests/_support/helpers.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"bin": ["phalcon"]
}
Loading