Welcome Guest, Not a member yet? Register   Sign In
Say No to Composer!

(06-10-2015, 07:40 AM)MatthewSchenker Wrote: Greetings,

I'm very happy to see all the great CodeIgniter developments and discussions, and I am confident about the framework's future.

Which brings me to my point.

Please, let's not go down the Composer road with CodeIgniter.

Here's my reasoning...
1. Although I like the idea of help managing libraries, the implementation of Composer adds extra work which, in many cases, ends up costing more time than just managing your libraries.
2. I do not like the "disconnect" that happens with Composer.  One of my main reasons for using CodeIgniter is that it keeps you in touch with the code, and "install" just means placing code where you need it.  With Composer, there is a black-box sensation, where you install software and lose track of what's running on your application.
3. I am pretty confident that 5 years from now the development community will be done with Composer, just as we are now done with PEAR.  I've been coding for 25 years, and Composer feels to me like so many "breakthroughs" that are not destined to last.

Of course, I may be completely wrong about everything!  But I just wanted to put this out there and hear what others have to say.


What do you think about Splint, A Package and Dependency Manager for Code Igniter at https://splint.cynobit.com ?

(06-10-2015, 01:24 PM)ivantcholakov Wrote: PS: For achieving autoloading, if somebody finds a way to trick $this->load->lang('language_file'); he/she will be the master of the Universe. :-)

This is very possible with Class Overloading (https://www.php.net/manual/en/language.o...oading.php)... I've been thinking of making something like this possible with Splint (https://splint.cynobit.com)

You can do this by extending the Loader  class

Extend one of you core classes (The Loader) by creating a MY_Loader.php file in your application/core folder

Then define a __get() function in the class and try to resolve aliases that don't exits....

In your case of a language file, you can override the lang() method of the Loader class and go from there

Theme © iAndrew 2016 - Forum software by © MyBB