Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddeboer/ddeboersshbundle
A small Symfony2 bundle for integrating Antoine Hérault’s PHP-SSH library into your Symfony2 project
https://github.com/ddeboer/ddeboersshbundle
Last synced: about 1 month ago
JSON representation
A small Symfony2 bundle for integrating Antoine Hérault’s PHP-SSH library into your Symfony2 project
- Host: GitHub
- URL: https://github.com/ddeboer/ddeboersshbundle
- Owner: ddeboer
- Created: 2011-11-17T11:57:32.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-17T18:19:40.000Z (about 13 years ago)
- Last Synced: 2024-10-30T04:50:07.777Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 88.9 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SSH Symfony2 Bundle
===================Introduction
------------
A small Symfony2 bundle for integrating Antoine Hérault’s PHP-SSH library into your
Symfony2 project.Requirements
------------You need to install Antoine Hérault’s [PHP-SSH wrapper](https://github.com/Herzult/php-ssh) first.
Installation
------------Install this bundle like you would any other Symfony2 bundle. (Installation will
soon be migrated to using Composer.)Usage
-----In your `config.yml`:
```
ddeboer_ssh:
connections:
an_sftp_server:
host: hostname.com
authentication_password:
username: my_username
password: my_password
```In your application code:
```
$session = $this->getSession();
$sftp = $session->getSftp();
$sftp->write('/home/my_username/just_a_file.txt', 'some file contents');
```For more information, please refer to the [PHP-SSH documentation](https://github.com/Herzult/php-ssh).