Download the PHP package inigo-aldama/inmovilla-api-proxy without Composer
On this page you can find all versions of the php package inigo-aldama/inmovilla-api-proxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inigo-aldama/inmovilla-api-proxy
More information about inigo-aldama/inmovilla-api-proxy
Files in inigo-aldama/inmovilla-api-proxy
Package inmovilla-api-proxy
Short Description A proxy server for interacting with the Inmovilla API, designed for environments with restricted IP access.
License MIT
Homepage https://github.com/inigo-aldama/inmovilla-api-proxy
Informations about the package inmovilla-api-proxy
Inmovilla API Proxy (Unofficial)
[]()
[
]()
inmovilla-api-proxy
is a tool designed to solve a specific problem when interacting with the Inmovilla API: IP-based access restrictions.
Note: This project is not affiliated with, endorsed by, or maintained by Inmovilla.
Why Use Inmovilla API Proxy?
Inmovilla restricts access to their API to specific IP addresses. This becomes a problem when you're developing from a machine outside the allowed IP range. Here's how the situation looks:
-
Production server with
inmovilla-api-client
installed
✅ Can connect to the Inmovilla API (IP is allowed). - Development machine with
inmovilla-api-client
installed
❌ Cannot connect to the Inmovilla API (IP is not allowed).
This package solves the issue by enabling the production server to act as a proxy. With inmovilla-api-proxy
installed on the production server:
- Your development machine sends requests to the production server (acting as the proxy).
- The production server forwards these requests to the Inmovilla API.
- The response from the Inmovilla API is sent back to your development machine.
How It Works
Here’s a visual representation of the interaction flow between the Development Server, Production Server, and the Inmovilla API:
Production Server
inmovilla-api-client
is installed to send API requests to Inmovilla.inmovilla-api-proxy
is installed to act as a proxy for requests from the development machine.
Development Machine
inmovilla-api-client
is installed to send requests to the proxy on the production server.
Example Flow
-
Without Proxy
- Development server → Direct connection to Inmovilla API → ❌ IP not allowed.
- With Proxy
- Development server → Proxy on production server → Inmovilla API → ✅ Works.
Requirements
- PHP: 7.4 or higher.
- Composer: For dependency management.
- Libraries:
Installation
-
Install the Proxy on the Production Server Clone the repository or use Composer:
-
Configure API Credentials Update the
api.ini
configuration file on both servers (development and production):api.ini
on the production server:api.ini
on the development server:
Usage
-
On the Production Server Deploy
inmovilla-api-proxy
with the following setup: - On the Development Machine
Configure
api_url
to point to the production server's proxy, and useinmovilla-api-client
as usual.
Key Points
- The proxy must be installed on the production server; it's not needed on the development machine.
- The
api.ini
configuration must exist on both servers:- The production server uses the real Inmovilla API URL.
- The development machine points
api_url
to the proxy URL.
Data Sent to Inmovilla API
When using the proxy, the following data is sent to Inmovilla:
api_url
: From the production server.domain
: From the production server.agency
: From the development machine.password
: From the development machine.language
: From the development machine.
Testing
Run PHPUnit tests to validate functionality:
Contribution
- Fork the repository.
- Create a new branch (
git checkout -b feature/new-feature
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to your branch (
git push origin feature/new-feature
). - Open a pull request.
License
This project is licensed under the MIT License.
Credits
- Author: Iñigo Aldama Gómez
- Inmovilla API Client Repository: inmovilla-api-client
All versions of inmovilla-api-proxy with dependencies
ext-json Version *
ext-curl Version *
inigo-aldama/inmovilla-api-client Version ^1.0