Skip to content

bildvitta/iss-satellite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iss-satellite

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package allows Nave Servers to connect with this external services:

  • Mega
  • WSCarteira
  • Finnet
  • SSH

Requirement: Oracle Instant Client + OCI8 PHP extension

This package requires Oracle Instant Client oci8 PHP extension installed on your server for Mega operations

php:8.X-fpm Dockerfile

ENV ORACLE_HOME=/opt/oracle/instantclient_21_13
ENV LD_LIBRARY_PATH=$ORACLE_HOME
ENV PATH=$ORACLE_HOME:$PATH
RUN mkdir -p /opt/oracle && \
    cd /opt/oracle && \
    wget https://download.oracle.com/otn_software/linux/instantclient/2113000/instantclient-basic-linux.x64-21.13.0.0.0dbru.zip && \
    wget https://download.oracle.com/otn_software/linux/instantclient/2113000/instantclient-sdk-linux.x64-21.13.0.0.0dbru.zip && \
    unzip instantclient-basic-linux.x64-21.13.0.0.0dbru.zip && \
    unzip instantclient-sdk-linux.x64-21.13.0.0.0dbru.zip && \
    echo "$ORACLE_HOME" > /etc/ld.so.conf.d/oracle-instantclient.conf && \
    ldconfig
RUN docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
    docker-php-ext-install oci8

Requirement: Soap PHP extension

This package requires Soap PHP extension installed on your server for WSCarteira operations

php:8.X-fpm Dockerfile

RUN apt-get update && apt-get install -y libxml2-dev \
    && docker-php-ext-install soap

Package Installation

You can install the package via composer:

composer require bildvitta/iss-satellite

You can publish the config file with:

php artisan vendor:publish --tag="iss-satellite-config"

Package Usage

Mega

// Mega direct DB Connection
$query = Nave\Mega::connection()->select('select * from EXAMPLE');

// Mega specific functions
$data = [
    'cto_in_codigo' => 123,
    'document' => '123.123.123-12',
    'agn_st_nome' => 'João da Silva',
]
$query = Nave\Mega::clientesSac($data);

Ssh

use Nave\IssSatellite\Facades\Ssh;

// Connect to the default 'mega' connection
Ssh::connect();

// Or connect to a different connection
Ssh::connection('my-other-connection')->connect();

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages