Yii 1.1: chilkat

Import Chilkat Library into Yii using auto-loader
3 followers

Chilkat is a powerfull library for developers. I would never think PHP without Chilkat and even desktop applications or mobile apps.

Chilkat provides many libraries for developers to handle most of them easily. From E-Mail to RSA, RAR to TAR, Compression and Encryption, Certificate, DSA, File Access and many more. Please take a look its own homepage.

You have to buy Chilkat because its not free. (unfortunately) But i admit that, it deserves every penny.

If you already have chilkat and licensed, just install on server and tryout this extension.

After installing this extension, Chilkat libraries will be automatically included When needed/called.

Requirements

Yii 1.1 and later is required to use.

Chilkat 9.3.0 need to be installed on the system.

Now with v9.3.1 support.

Usage

  1. Export EChilkatLibrary.php into the extension dir.
  2. Export Chilkat folder to the vendors dir.
  3. Use this schema and update your main.php config file.
'components'=>array(
    'chilkat' =>  array(
        'class'=>'ext.EChilkatLibrary'
    ),
),
...
'preload'=>array('log', 'chilkat'), // and etx...

This extension requires Chilkat library (php files). You may download Chilkat's its own classes but its single file only and about 450 KB. Which is not flexible. I just split all of them and renamed every classes. This extension only works with my custom vendor folder/lib.

Resources

Total 4 comments

#8150 report it
Gencer at 2012/05/13 03:20am
RE: RE: RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.

Glad to hear that its worked. And im glad to hear that you found this helpful. I also uploaded new version of Chilkat Library v9.3.1

#8144 report it
jmariani at 2012/05/13 12:11am
RE: RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.

Hi!

I've just finished to make it work. It was, as usual, a case of bad typing and the Chilkat .so that wasn't loading. It is an impressive library, I didn't heard of it until today. It saves me a lot of work with certificates.

Thank you very much for making it available to Yii.

Regards!

#8143 report it
Gencer at 2012/05/12 11:53pm
RE: PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory Hi.

Have you add the extension path correctly? Please replace the function inside of EChilkatLibrary.php and see what happen.

public function init() {
        echo "IT IS WORKING!";
        Yii::registerAutoloader(array("EChilkatLibrary", "loadLibrary"));
        //It has to be required once:
        require_once (self::$basePath.'Chilkat/SYSTEMTIME.php');
}
static function loadLibrary($className){
        echo "CALLED: ".$className;
        foreach(self::$prefixes as $prefix){
            if(strpos($className, $prefix)!==false){
                if(!self::$basePath) self::$basePath = Yii::getPathOfAlias("application.vendors").'/';
                        echo "FILE IS SEARCHED IN ".self::$basePath.'Chilkat/'.$className.'.php';
                require_once( self::$basePath.'Chilkat/'.$className.'.php' );
                return class_exists($className, false) || interface_exists($className, false);
            }
        }
        return false;
    }

Please do this to determine where the error is located.

#8138 report it
jmariani at 2012/05/12 06:34pm
PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory

Hi.

I'm testing your extension but couldn't make it to work.

When i try to do

$cert = new CkCert();

It fails with

PHP Error[2]: include(CkCert.php): failed to open stream: No such file or directory

Any help?

TIA!

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: Gencer
  • Category: Others
  • Votes: +2
  • Downloaded: 191 times
  • Created on: Mar 2, 2012
  • Last updated: May 13, 2012
  • Tags: chilkat