Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8373543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:42:05+00:00 2026-06-09T14:42:05+00:00

As per title, has anyone achieved this? What are the best practices on including

  • 0

As per title, has anyone achieved this? What are the best practices on including this library into codeigniter (v2.1.2) ?

I know it can be done by simply using include/require statements like any other PHP application, however as this project will be handed over to multiple devs once complete, I want to ensure it’s built correctly using the design patterns the CI dev intended.

I’ve tried the following in a test controller

public function index(){

    $this->load->library('phpseclib0.3.0/Net/SFTP');

}

However I’m greeted with:

Non-existent class: SFTP

phpseclib taken from here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:42:06+00:00Added an answer on June 9, 2026 at 2:42 pm

    the $this->load->library method is for libraries that already exist within codeigniter.

    You could create a wrapper for the PHPSecLib class, however what’s probably easiest at the moment is to simply include it.

    1. Download the source code fromm phpseclib’s page.
    2. Upload it to the /application/third_party folder
    3. include the file.

      include(APPPATH . '/third_party/phpseclib/Net/SSH2.php');

    4. Create an instance of class your wanting to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per title, can an ActorContext extracted from within an actor be safely used
As per the title I have three parts to this question... Is db4o object
As per the title, is this possible? By tri-state, I mean the parent node
Using Visual Studio 2005 As per the title; MSDN and google can't tell me,
This question has been asked before: AlertDialog custom title has black border But was
Anyone able to offer some ideas on this? Basically the module I'm building has
As per title i am trying to measure page performance in IE6 that has
As per the title, how would I fit text into a UILabel when the
As per title. I have a piece of jQuery that looks like the following
As per title, what practise for string comparisons do you use and why?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.