Comments (9)
Well, our conclusion became: Screw php :) we'll use a different language.
I'm sad for phalcon. It was & is a great framework, but succumbing it to the php swamps will lead to a garbaggio future.
from ide-stubs.
Just use
PSR-4
, it is easy and universal approach in nowadays PHP...
We don't want universal approach when the special approach has already served us so fuckin well
from ide-stubs.
Hello!
Yes, I'm still working on it - phalcon/cphalcon#15362
There are 480 errors left, according to Psalm.
You can easily use v4 stubs atm.
from ide-stubs.
Update: 475 errors left :)
from ide-stubs.
Awesome! Thanks @Jeckerson !!! I guess, we'll take a look at it and see if we can contribute some smart here.
If I may permit myself a slightly unrelated question: My co-owner & CTO @rlegmann just found an article from last year, that says Phalcon 5 would be php based and zephir will be dead and gone. Now I see that (thank God) phalcon 5 seems to still be zephir based, and it's actively developed. So, what's up with the plans?
We LOVE!!! Zephir & Phalcon being a native speedy gonzales; it's one of the main reasons why we chose Phalcon besides it's pretty pro' software design aspects. But if the plan is to make Phalcon a scripted stuff, we might have to reassess some of our investments.
Any source we can dig up for some answers or commitments maybe?
from ide-stubs.
Hello @adam-rocska
zephir will be dead and gone
If you read carefully, only 1 person left. We shifted our roles during last half of year and managed to update Zephir to 0.13.x
with PHP 7.4 and PHP 8.0 support.
Also, we shifted our plans to release 4.2
with PHP8.0 support, due wrong signatures in interfaces, as Phalcon complies semver, this requirement was necessary. So Phalcon with PHP8 support will be v5.0
.
About Phalcon in PHP native. Due shift from 4.2
to 5.0
, we also shifted PHP Phalcon to v6.0
(https://github.com/phalcon/phalcon/tree/v6.0.x).
In our plans we want to have good from both worlds: speed in Zephir/C and quality in PHP. So we will make slow shift from full C extension to hybrid solution. Where you will have whole framework in PHP (composer) and if you want speed - just install extension.
Simple case with CLI commands:
composer require phalcon/phalcon
pecl install phalcon-ext
If you will execute 2nd command, it will start to use classes from extension and not from PHP files.
Working example you can check here - https://github.com/RubixML/Tensor#tensor-php
The transition between full C extension framework to hybrid will done slowly to make sure that every step we made correctly.
Phalcon v5.0 will be supported at least until PHP8.1 which is until end of 2024 (according to https://www.php.net/supported-versions.php)
from ide-stubs.
I really wish Phalcon will always be delivered as extension rather than in PHP classes.
Coz, when it was an ext I just need to install that ext and voila, everything set and ready.
BUT when delivered as PHP classes?
Oh man, autoload.this autolaod.that, deps on this , deps on that. etc etc.
I'll be so sad if that day happened.
The fact that Phalcon is delivered in ext is what make it so special. If it was delivered in PHP classes, IMHO it is no longer special.
from ide-stubs.
@blackjyn Just use PSR-4
, it is easy and universal approach in nowadays PHP...
from ide-stubs.
https://github.com/phalcon/ide-stubs/releases
from ide-stubs.
Related Issues (20)
- How to install with VIsual Studio Code ? HOT 1
- Rework of the stubs to contain more information HOT 4
- Wrong type 'mixed', expecting 'string' as defined by Serializable::unserialize HOT 6
- class Exception extends Exception HOT 4
- V4: \Phalcon\Mvc\Model::find() - wrong return namespace HOT 2
- Argument 1 of Phalcon\Di\Injectable::setDI has wrong type 'mixed'
- Rewrite PHPCS to github actions HOT 1
- Use phalcon with eval(a) or reflection, so the development environment does not throw error messages HOT 7
- Phalcon\Di\Injectable::setDI has wrong type 'mixed' HOT 12
- Release 4.0.6 HOT 1
- Ide plugin HOT 2
- Validation and ValidationInterface "add" method incompatible HOT 1
- Configure Visual Studio Code HOT 1
- MethodSignatureMismatch AbstractValidator::getOption has wrong type 'mixed', expecting 'string' HOT 1
- Phalcon\Db not exist HOT 2
- Method signature mismatch HOT 1
- Automatize stubs code generation for new release
- missing Tag.php in ide-stubs/src/ HOT 1
- phpDoc @method from src/Html/TagFactory.php HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ide-stubs.