Intelx-php is an implementation of the IntelX API into a PHP.
- PHP Server (e.g., XAMPP)
- Donwload: https://www.apachefriends.org/es/download.html
- Access to a terminal or command line interface
- Clone the repository or download the source code
git clone https://github.com/codefen/intelx-php
-
Place the project folder in your web server's root directory (e.g.,
htdocs
for XAMPP). -
Start your web server (Apache, Nginx, etc.).
-
Open the project by navigating to
http://localhost/intelx-php
in your web browser.
In order to use the application you must need to set the API Key from IntelX in the env variable
model
: Specifies the handler to use. Current implementation supports 'inx'.ac
: Action to perform. Available actions: 'init_search', 'search', 'preview', 'read'.- Additional parameters depending on the action (
term
,id
,offset
, etc.).
- INX Handler: Interacts with IntelX API, performing search operations and handling data retrieval.
-
Init Search (
ac=init_search
):- Initiates a search query.
- Parameters:
term
(search term).
-
Search (
ac=search
):- Performs a search based on the given ID.
- Parameters:
id
(search ID),offset
(pagination offset).
-
Preview (
ac=preview
):- Retrieves a preview of a file.
- Parameters:
sid
(storage ID),mid
(media ID),bid
(bucket ID).
-
Read (
ac=read
):- Retrieves the full view of a file.
- Parameters:
sid
(storage ID),bid
(bucket ID).