Codeigniter 4 is now under
development and many people are very
excited about it! But is the Refactoring of
all the code worth it? Let's find out!
We all know how powerful, fast and simple
Codeigniter is. On the other hand we
also know that the framework is really
really old
I'm using Codeigniter for almost
nine years and I have to say I've never
seen big changes on the framework.
Many people also have mixed feelings about
Codeigniter 4. We all believe that
the complete rewrite of the framework is
the best choice... on the other hand isn't
it too late to do that? Now that Laravel
is driving the ship? I don't want to
keep you waiting more, so let's answer
some questions!
What are my initial impressions about
Codeigniter 4
My initial impression is that it's a very good step
forward and I've already tested in my local
machine and as you can see, it is
just amazing from the first sight. Want
to see the first page?
there you have it. This is the default
page that you will see once Codeigniter 4
is installed to your project
nothing too extraordinary! But do you want
to see some magic that we were all waiting
for a long time? By simply adding one
more line at the .htaccess file, there
is a debug bar out-of-the-box and this
bar is really helpful for the everyday
development believe me and of course the
the code is still simple as
it should be for example the basic
controller as you can also see, still follows
the simplicity of older Codeigniter versions
One last thing worth mentioning is
that it's also extremely... FAST
Codeigniter you have my LIKE
What are the main new features that Codeigniter 4 has?
There's an official
announcement that explains with details
these cool new features. I will add the link below.
As the article is big, to sum it up
the first official release will have
all the features of older Codeigniter
just rewriten, by simply putting it there
is not any new functionality for the
first phase this is not particularly
a bad thing, we have to admit it Codeigniter
had pretty much tons of features and
it was just that it wasn't that flexible.
With the newest version this will change
as the core of Codeigniter will be much
more powerful so the main key features that
you should mostly care about is the
following: - Namespaces: you can simply work
with your favorite editor now and have
autocomplete of the basic functions
of Codeigniter - Flexibility: the
framework will be easier to extend as the
code is completely rewritten , so it can have
a strong base. - Simplicity: It is still
keeping the simplicity of CI 3 So...
I think these are enough for the
first phase.
What do you think guys?
I want to create
a brand new project, should they use CI 3
or Codeigniter 4?
Currently... Codeigniter 3 will still be supported
and they've promised a longtime support.
In my opinion, if you are going to create
a new project choose Codeigniter version 3
why?
You will definitely find some
answers to your questions on stackoverflow
for sure! If you think that Codeigniter 4
is your best choice then just be careful
as the initial support may be more
difficult and it may be a lack of
documentation for the tricky parts.
I am using Codeigniter version 3, should I
update to Codeigniter 4?
If you are using Codeigniter version 3, then you
should think about it a LOT before
updating to the fourth version and the
main reason is that it seems that it is
not a backward compatible version so if
you're going to migrate to CI 4, you
have to think about it, as you will
probably need to change your code a LOT
Is Codeigniter 4 going to be more
famous than Laravel?
It is hard to say as it is too early
Laravel is the most famous framework by
far from all the other frameworks out
there and this is achieved after three
years i think this is mainly about the
community and the companies of how much
they will invest in Codeigniter.
I think it is very hard to beat the first
framework out there... but we'll see.
Codeigniter 4 would be one of the first frameworks
that drops completely PHP 5 and this may
attract more people.
what are the new things that you were always wishing
Codeigniter should have and do they exist
in Codeigniter 4? There are five basic
things that I was waiting for a long
time and all of them are now part of the
framework
The first one is cleaner code at the
core functionality of the background
Second ... Autocomplete for smart editors
Better database query generator
Unit tests and code coverage and finally
better at handling. This is finally done!
For people new to Codeigniter, I mean the
show_error functions of Codeigniter
three or earlier was really messy
as you couldn't actually see the line
that the code broke
currently it is using a beautiful interface
for errors and of course can be
disabled at the production.
In few words
Codeigniter 4 will be a very good
step forward and the support of PHP
seven and later will be very very beneficial
It is never too late for a rewrite of
the code and people are always
positive for new things.... sooo what do
you think guys, are you going to use
Codeigniter 4 framework?
Are you positive for the rewrite of the code or
is it too late for you as you've already
move in a different framework?
I am Johnny and hopefully you enjoyed this video
like the video if you did like it as its
supporting me a lot to create new videos
like that if you didn't like something
at this video don't forget to add some
comments below
so i can improve it next time and
as always... don't forget subscribe if
you want to see more videos with similar
content and... that's basically it!
Speak to you guys to the next one. Bye!