Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-11-20 (12 hours ago) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
webservicephpmysql 1.0 | The PHP License | 5 | PHP 5, Web services, Design Patterns |
Description | Author | ||||||||||||||
This package can implement an API using MySQL to store objects. |
|
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 (42) |
File | Role | Description | ||
---|---|---|---|---|
app (4 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. | Auxiliary script | ||
bootstrap.php | Example | Example script | ||
config.php | Aux. | Configuration script | ||
PHP - Sistema de Rotas.pdf | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (42) | / | app |
File | Role | Description |
---|---|---|
Controller.php | Class | Class source |
ControllerCarros.php | Class | Class source |
ControllerCarrosJSON.php | Class | Class source |
Database.php | Class | Class source |
Files (42) | / | classes | / | authentication |
File | Role | Description |
---|---|---|
Authentication.php | Class | Class source |
Users.php | Class | Class source |
Files (42) | / | 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 (42) | / | 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 (42) | / | public |
Files (42) | / | 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 (42) | / | templates | / | base |
File | Role | Description |
---|---|---|
index.html | Doc. | Documentation |
tabelaCarros.html | Doc. | Documentation |
timeline.html | Doc. | Documentation |
Files (42) | / | 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 (42) | / | 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 |
Version Control | Unique User Downloads | |||||||
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.