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-05-13 (4 months ago) | Not yet rated by the users | Total: 20 | All time: 11,289 This week: 60 |
Version | License | PHP version | Categories | |||
matrix-multiplicatio 1.0.0 | The PHP License | 7 | Web services, Math, PHP 7 |
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 (82) |
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 (82) | / | app |
Files (82) | / | 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 (82) | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Api (3 files) | ||||
Controller.php | Class | Class source |
Files (82) | / | app | / | Http | / | Controllers | / | Api |
File | Role | Description |
---|---|---|
AuthController.php | Class | Class source |
MatrixController.php | Class | Class source |
MeController.php | Class | Class source |
Files (82) | / | 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 (82) | / | app | / | Http | / | Requests | / | Api | / | Auth |
File | Role | Description |
---|---|---|
LoginRequest.php | Class | Class source |
Files (82) | / | app | / | Http | / | Requests | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MatrixMultiplicationRequest.php | Class | Class source |
Files (82) | / | 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 (82) | / | app | / | Rules |
File | Role | Description |
---|---|---|
FullMatrixRule.php | Class | Class source |
MatrixIntegerRule.php | Class | Class source |
MatrixRangeRule.php | Class | Class source |
Files (82) | / | app | / | Services | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MultiplicationService.php | Class | Class source |
Files (82) | / | 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 (82) | / | database |
File | Role | Description | ||
---|---|---|---|---|
factories (1 file) | ||||
migrations (3 files) | ||||
seeders (2 files) |
Files (82) | / | 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 (82) | / | database | / | seeders |
File | Role | Description |
---|---|---|
DatabaseSeeder.php | Class | Class source |
UsersTableSeeder.php | Class | Class source |
Files (82) | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
web.config | Data | Auxiliary data |
Files (82) | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files (82) | / | 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 (82) | / | 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 (82) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (1 directory) | ||||
Unit (1 directory) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files (82) | / | tests | / | Feature | / | Api |
File | Role | Description | ||
---|---|---|---|---|
Authentication (1 file) | ||||
Matrix (1 file) | ||||
Me (1 file) |
Files (82) | / | tests | / | Feature | / | Api | / | Authentication |
File | Role | Description |
---|---|---|
LoginTest.php | Class | Class source |
Files (82) | / | tests | / | Feature | / | Api | / | Matrix |
File | Role | Description |
---|---|---|
MatrixMultiplicationTest.php | Class | Class source |
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 | 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.