Skip to content

Latest commit

 

History

History
executable file
·
48 lines (33 loc) · 1.15 KB

File metadata and controls

executable file
·
48 lines (33 loc) · 1.15 KB

Welcome to CakeSecLib a CakePHP Plugin

CakeSecLib automates loading phpseclib in CakePHP.

Installation

Clone the plugin inside your myapp/Plugin and activate it with bootstrap enabled:

CakePlugin::loadAll(array(
    'CakeSecLib' => array('bootstrap'=>true)
));

Usage

Head on to phpseclib documentation of what available classes you can use.:

<?php
    include('Net/SFTP.php');

    $sftp = new Net_SFTP('www.domain.tld');
    if (!$sftp->login('username', 'password')) {
        exit('Login Failed');
    }

    // outputs the contents of filename.remote to the screen
    echo $sftp->get('filename.remote');
?>

License

CakeSecLib is released under the WTFPL license.

Support

Send me a bottle of beer or FORK it! :)