Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-11-22 (2 days ago) | Not yet rated by the users | Total: 18 This week: 18 | All time: 11,353 This week: 5 |
Version | License | PHP version | Categories | |||
webservicephpjson 1.0.0 | The PHP License | 5 | PHP 5, Web services, Design Patterns, A... |
Description | Author | ||||||||||||||
This package implements an API example that stores information in JSON files. |
|
<?php |
The goal of this package is to implement a routing mechanism to present beautiful URLs. With this mechanism, all requests are made in the public folder and then redirected to a specific file according to the route (URL) written.
Version 1.0 2023/03/06
edit the routes file to match a route to a file. Each route or set of routes should correspond to a website service. In order to edit the routes.php file to make the correspondence you need to open the file and add the desired route and the corresponding service. For example, if you want to match the route "/my-route" to the "my-service" service, you can add the following line to the routes.php file:
Route::get('/my-route', 'MyService@index'); This will make it so that when a request is sent to the "/my-route" URL, the "MyService" service is invoked. You can also use route parameters and wildcards to make more complex matches. For more information on the routing system in PHP, please refer to the official documentation.
Files (235) |
File | Role | Description | ||
---|---|---|---|---|
.history (3 files, 4 directories) | ||||
app (2 files) | ||||
classes (1 file, 1 directory) | ||||
image (5 files) | ||||
json (4 files) | ||||
public (2 files) | ||||
routes (1 file) | ||||
src (7 files, 1 directory) | ||||
templates (2 directories) | ||||
.htaccess | Data | Auxiliary data | ||
autoload.php | Aux. | Configuration script | ||
bootstrap.php | Example | Example script | ||
config.php | Aux. | Configuration script | ||
PHP - Sistema de Rotas.pdf | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (235) | / | .history |
File | Role | Description | ||
---|---|---|---|---|
app (16 files) | ||||
json (14 files) | ||||
routes (19 files) | ||||
templates (1 directory) | ||||
config_20241108100656.php | Aux. | Configuration script | ||
config_20241108135739.php | Aux. | Configuration script | ||
config_20241108144726.php | Aux. | Configuration script |
Files (235) | / | .history | / | app |
File | Role | Description |
---|---|---|
ControllerCarros_20241108100704.php | Class | Class source |
ControllerCarros_20241108103528.php | Class | Class source |
ControllerCarros_20241108103624.php | Class | Class source |
ControllerCarros_20241108140106.php | Class | Class source |
ControllerCarros_20241108140257.php | Class | Class source |
ControllerCarros_20241108141730.php | Class | Class source |
ControllerCarros_20241108141745.php | Class | Class source |
ControllerCarros_20241108141846.php | Class | Class source |
ControllerCarros_20241108144940.php | Class | Class source |
ControllerCarros_20241108145012.php | Class | Class source |
ControllerCarros_20241108152834.php | Class | Class source |
ControllerCarros_20241108153007.php | Class | Class source |
ControllerCarros_20241108153531.php | Class | Class source |
ControllerCarros_20241108153607.php | Class | Class source |
ControllerCarros_20241108155819.php | Class | Class source |
ControllerCarros_20241108160549.php | Class | Class source |
Files (235) | / | .history | / | json |
File | Role | Description |
---|---|---|
dados_20241108105721.json | Data | Auxiliary data |
dados_20241108105740.json | Data | Auxiliary data |
dados_20241108155656.json | Data | Auxiliary data |
dados_20241112133810.json | Data | Auxiliary data |
dados_20241112133812.json | Data | Auxiliary data |
dados_20241112133818.json | Data | Auxiliary data |
dados_20241112133821.json | Data | Auxiliary data |
dados_20241112133827.json | Data | Auxiliary data |
dados_20241112133837.json | Data | Auxiliary data |
dados_20241112133838.json | Data | Auxiliary data |
dados_20241112133840.json | Data | Auxiliary data |
dados_20241112133843.json | Data | Auxiliary data |
dados_20241112151611.json | Data | Auxiliary data |
dados_20241112151612.json | Data | Auxiliary data |
Files (235) | / | .history | / | routes |
File | Role | Description |
---|---|---|
routes_20241022141435.php | Example | Example script |
routes_20241108135148.php | Example | Example script |
routes_20241108140156.php | Example | Example script |
routes_20241108141656.php | Example | Example script |
routes_20241108141852.php | Example | Example script |
routes_20241112130753.php | Example | Example script |
routes_20241112130755.php | Example | Example script |
routes_20241112130759.php | Example | Example script |
routes_20241112130810.php | Example | Example script |
routes_20241112130826.php | Example | Example script |
routes_20241112130829.php | Example | Example script |
routes_20241112130836.php | Example | Example script |
routes_20241112130838.php | Example | Example script |
routes_20241112130841.php | Example | Example script |
routes_20241112130850.php | Example | Example script |
routes_20241112130855.php | Example | Example script |
routes_20241112130909.php | Example | Example script |
routes_20241112130912.php | Example | Example script |
routes_20241112141651.php | Example | Example script |
Files (235) | / | .history | / | templates | / | base |
Files (235) | / | app |
File | Role | Description |
---|---|---|
Controller.php | Class | Class source |
ControllerCarros.php | Class | Class source |
Files (235) | / | classes | / | authentication |
File | Role | Description |
---|---|---|
Authentication.php | Class | Class source |
Users.php | Class | Class source |
Files (235) | / | image |
File | Role | Description |
---|---|---|
carro1.png | Icon | Icon image |
carro2.png | Icon | Icon image |
carro3.png | Icon | Icon image |
carro4.png | Icon | Icon image |
ControllerCarros2.php | Class | Class source |
Files (235) | / | json |
File | Role | Description |
---|---|---|
apiJson.php | Aux. | Configuration script |
dados copy.json | Data | Auxiliary data |
dados.json | Data | Auxiliary data |
dadosOld.json | Data | Auxiliary data |
Files (235) | / | public |
Files (235) | / | src |
File | Role | Description | ||
---|---|---|---|---|
helpers (1 file) | ||||
Connection.php | Class | Class source | ||
Dispacher.php | Class | Class source | ||
Request.php | Class | Class source | ||
Response.php | Class | Class source | ||
Route.php | Class | Class source | ||
RouteCollection.php | Class | Class source | ||
Router.php | Class | Class source |
Files (235) | / | templates | / | base |
File | Role | Description |
---|---|---|
index.html | Doc. | Documentation |
tabelaCarros.html | Doc. | Documentation |
timeline.html | Doc. | Documentation |
Files (235) | / | templates | / | Errors |
File | Role | Description | ||
---|---|---|---|---|
images (2 files) | ||||
erro401.php | Aux. | Configuration script | ||
erro404.php | Aux. | Configuration script | ||
estilo.css | Data | Auxiliary data | ||
index.html | Doc. | Documentation |
Files (235) | / | templates | / | Errors | / | images |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
webservicephpjson-2024-11-22.zip 2846KB | |
webservicephpjson-2024-11-22.tar.gz 2517KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.