Skip to content

A CakePHP phpseclib drop-in plugin that automates it's loading.

Notifications You must be signed in to change notification settings

pyodor/CakeSecLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! :)

About

A CakePHP phpseclib drop-in plugin that automates it's loading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages