Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (82) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-05-13 (Yesterday) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
matrix-multiplicatio 1.0 | The PHP License | 7 | Web services, Math, PHP 7 |
Description | Author | |
This package can provide matrix multiplication as a Web service. |
Create a Laravel application for Matrix multiplication. The app should feature a REST API with authentication. For Matrix multiplication, the column count in the first matrix should be equal to the row count of the second matrix. If this condition is not met, the app should throw a validation error. The resulting matrix should contain characters rather than numbers, similar to excel columns. Examples: 1 => A, 26 => Z, 27 => AA, 28 => AB, etc.
Expectation
Below are the steps you need to successfully setup and run the application.
composer install
php artisan migrate
to migrate database tables
php artisan db:seed
to seed the default user record
php artisan jwt:secret
to generate the key
The api endpoint collection is extracted by importing this link Postman Collection on your postman.
The test is setup to use the refresh database trait, please ensure you create a db for running the test and updating it on the .env. To run the test
simply run /vendor/bin/phpunit
The default login access are email : test@test.com
and password : password
Enjoy!!!
Files |
File | Role | Description | ||
---|---|---|---|---|
app (7 directories) | ||||
bootstrap (1 file) | ||||
config (15 files) | ||||
database (3 directories) | ||||
public (4 files) | ||||
resources (3 directories) | ||||
routes (4 files) | ||||
tests (2 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
.styleci.yml | Data | Auxiliary data | ||
artisan | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
server.php | Aux. | Auxiliary script | ||
webpack.mix.js | Data | Auxiliary data |
Files | / | app |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (1 file, 1 directory) | ||||
Middleware (8 files) | ||||
Requests (1 directory) | ||||
Resources (1 directory) | ||||
Kernel.php | Class | Class source |
Files | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Api (3 files) | ||||
Controller.php | Class | Class source |
Files | / | app | / | Http | / | Controllers | / | Api |
File | Role | Description |
---|---|---|
AuthController.php | Class | Class source |
MatrixController.php | Class | Class source |
MeController.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
PreventRequestsDuringMaintenance.php | Class | Class source |
RedirectIfAuthenticated.php | Class | Class source |
TrimStrings.php | Class | Class source |
TrustHosts.php | Class | Class source |
TrustProxies.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files | / | app | / | Http | / | Requests | / | Api | / | Auth |
File | Role | Description |
---|---|---|
LoginRequest.php | Class | Class source |
Files | / | app | / | Http | / | Requests | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MatrixMultiplicationRequest.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
BroadcastServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files | / | app | / | Rules |
File | Role | Description |
---|---|---|
FullMatrixRule.php | Class | Class source |
MatrixIntegerRule.php | Class | Class source |
MatrixRangeRule.php | Class | Class source |
Files | / | app | / | Services | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MultiplicationService.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Auxiliary script |
cache.php | Aux. | Auxiliary script |
cors.php | Aux. | Auxiliary script |
database.php | Aux. | Auxiliary script |
filesystems.php | Aux. | Auxiliary script |
hashing.php | Aux. | Auxiliary script |
jwt.php | Class | Class source |
logging.php | Class | Class source |
mail.php | Aux. | Auxiliary script |
queue.php | Aux. | Auxiliary script |
services.php | Aux. | Auxiliary script |
session.php | Aux. | Auxiliary script |
view.php | Aux. | Auxiliary script |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...rd_resets_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
Files | / | database | / | seeders |
File | Role | Description |
---|---|---|
DatabaseSeeder.php | Class | Class source |
UsersTableSeeder.php | Class | Class source |
Files | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
web.config | Data | Auxiliary data |
Files | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files | / | resources | / | lang | / | en |
File | Role | Description |
---|---|---|
auth.php | Aux. | Auxiliary script |
pagination.php | Aux. | Auxiliary script |
passwords.php | Aux. | Auxiliary script |
validation.php | Aux. | Auxiliary script |
Files | / | routes |
File | Role | Description |
---|---|---|
api.php | Aux. | Auxiliary script |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Aux. | Auxiliary script |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (1 directory) | ||||
Unit (1 directory) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files | / | tests | / | Feature | / | Api |
File | Role | Description | ||
---|---|---|---|---|
Authentication (1 file) | ||||
Matrix (1 file) | ||||
Me (1 file) |
Files | / | tests | / | Feature | / | Api | / | Authentication |
File | Role | Description |
---|---|---|
LoginTest.php | Class | Class source |
Files | / | tests | / | Feature | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MatrixMultiplicationTest.php | Class | Class source |
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.