1. Go to this page and download the library: Download damiandev/ivy library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
damiandev / ivy example snippets
namespace App\Endpoints;
use Core\Abstracts\EndpointsAbstract;
final class Cliente extends EndpointsAbstract
{
public function todos()
{
// Algo que hacer
}
public function crear()
{
// Algo que hacer
}
public function eliminar()
{
// Algo que hacer
}
public function editar()
{
// Algo que hacer
}
public function mostrarUno()
{
// Algo que hacer
}
public function importar()
{
// Algo que hacer
}
public function exportar()
{
// algo que hacer
}
namespace Core\Abstracts;
use Core\Bridges\ServicesBridge;
use Core\Bridges\RequestBridge;
abstract class EndpointsAbstract
{
private ServicesBridge $serviceBridge;
private RequestBridge $requestBridge;
public function __construct(RequestBridge $requestBridge, ServicesBridge $servicesBridge)
{
$this->serviceBridge = $servicesBridge;
$this->requestBridge = $requestBridge;
}
public function getService($service)
{
return $this->serviceBridge->getService($service);
}
public function getData()
{
return $this->requestBridge->getData();
}
public function getParam($paramName)
{
return $this->requestBridge->getParam($paramName);
}
public function getFiles()
{
return $this->requestBridge->getFiles();
}
public function getFile($fileName)
{
return $this->requestBridge->getFile($fileName);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.