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-12-15 (Yesterday) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
laravel-simple-ecomm 1.0.0 | The PHP License | 7 | E-Commerce, Libraries, Web services, P... |
Description | Author | |
This package can show and sell products on a Web site. |
<?php |
PHP
Composer
Docker
MySQl
Redis
Jwt
Nginx
Testing
Rate limiting
docker compose up -d --build
docker compose exec app bash
chmod -R 777 /var/www/html/storage/ /var/www/html/bootstrap/
cp .env.example .env
composer install
docker compose exec app php artisan jwt:secret
docker compose exec app php artisan migrate:fresh --seed
mysql
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
redis
CACHE_DRIVER=redis
REDIS_CLIENT=predis
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
### Usage
Insomnia_2024-12-13.json
cp .env .env.testing
docker-compose exec app php artisan config:clear
docker-compose exec app php artisan cache:clear
docker-compose exec app php artisan config:cache
docker-compose exec app php artisan migrate:fresh --seed --env=testing
docker-compose exec app php artisan test
env.testing
APP_ENV=testing
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
Files (133) |
File | Role | Description | ||
---|---|---|---|---|
app (8 directories) | ||||
bootstrap (1 file) | ||||
config (16 files) | ||||
database (3 directories) | ||||
docker (2 directories) | ||||
public (3 files) | ||||
resources (2 directories) | ||||
routes (4 files) | ||||
tests (2 files, 2 directories) | ||||
.env.example | Data | Auxiliary data | ||
.env.testing | Data | Auxiliary data | ||
artisan | Class | Class source | ||
build.sh | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
docker-compose.yml | Data | Auxiliary data | ||
entrypoint.sh | Data | Auxiliary data | ||
Insomnia_2024-12-13.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
php.root.Dockerfile | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
vite.config.js | Data | Auxiliary data |
Files (133) | / | app |
Files (133) | / | app | / | Enums |
File | Role | Description |
---|---|---|
CartStatus.php | Aux. | Configuration script |
OrderStatus.php | Aux. | Configuration script |
ProductStatus.php | Aux. | Configuration script |
Files (133) | / | app | / | Events |
File | Role | Description |
---|---|---|
CartStatusEvent.php | Class | Class source |
ProductStockEvent.php | Class | Class source |
Files (133) | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (5 files, 1 directory) | ||||
Middleware (10 files) | ||||
Repositories (5 directories) | ||||
Requests (7 files) | ||||
Resources (6 files) | ||||
Services (5 files) | ||||
Kernel.php | Class | Class source |
Files (133) | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Auth (3 files) | ||||
CartController.php | Class | Class source | ||
CartItemController.php | Class | Class source | ||
Controller.php | Class | Class source | ||
OrderController.php | Class | Class source | ||
ProductController.php | Class | Class source |
Files (133) | / | app | / | Http | / | Controllers | / | Auth |
File | Role | Description |
---|---|---|
LoginController.php | Class | Class source |
LogoutController.php | Class | Class source |
RegisterController.php | Class | Class source |
Files (133) | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
IsAdminMiddleware.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 |
ValidateSignature.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files (133) | / | app | / | Http | / | Repositories |
Files (133) | / | app | / | Http | / | Repositories | / | Cart |
File | Role | Description |
---|---|---|
CartRepository.php | Class | Class source |
CartRepositoryInterface.php | Class | Class source |
Files (133) | / | app | / | Http | / | Repositories | / | CartItem |
File | Role | Description |
---|---|---|
CartItemRepository.php | Class | Class source |
CartItemRepositoryInterface.php | Class | Class source |
Files (133) | / | app | / | Http | / | Repositories | / | Order |
File | Role | Description |
---|---|---|
OrderRepository.php | Class | Class source |
OrderRepositoryInterface.php | Class | Class source |
Files (133) | / | app | / | Http | / | Repositories | / | Product |
File | Role | Description |
---|---|---|
ProductRepository.php | Class | Class source |
ProductRepositoryInterface.php | Class | Class source |
Files (133) | / | app | / | Http | / | Repositories | / | User |
File | Role | Description |
---|---|---|
UserRepository.php | Class | Class source |
UserRepositoryInterface.php | Class | Class source |
Files (133) | / | app | / | Http | / | Requests |
File | Role | Description |
---|---|---|
CartItemUpdateRequest.php | Class | Class source |
CartStoreRequest.php | Class | Class source |
LoginRequest.php | Class | Class source |
OrderStoreRequest.php | Class | Class source |
ProductStoreRequest.php | Class | Class source |
ProductUpdateRequest.php | Class | Class source |
RegisterRequest.php | Class | Class source |
Files (133) | / | app | / | Http | / | Resources |
File | Role | Description |
---|---|---|
CartResource.php | Class | Class source |
OrderResource.php | Class | Class source |
OrderShowResource.php | Class | Class source |
ProductResource.php | Class | Class source |
ProductShowResource.php | Class | Class source |
ProductStoreResource.php | Class | Class source |
Files (133) | / | app | / | Http | / | Services |
File | Role | Description |
---|---|---|
CartItemService.php | Class | Class source |
CartService.php | Class | Class source |
OrderService.php | Class | Class source |
ProductService.php | Class | Class source |
UserService.php | Class | Class source |
Files (133) | / | app | / | Listeners |
File | Role | Description |
---|---|---|
CartStatusListener.php | Class | Class source |
ProductStockListener.php | Class | Class source |
Files (133) | / | app | / | Models |
File | Role | Description | ||
---|---|---|---|---|
Trait (1 file) | ||||
Cart.php | Class | Class source | ||
CartItem.php | Class | Class source | ||
Order.php | Class | Class source | ||
Product.php | Class | Class source | ||
User.php | Class | Class source |
Files (133) | / | 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 |
RepositoryServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files (133) | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Configuration script |
cache.php | Aux. | Configuration script |
cors.php | Aux. | Configuration script |
database.php | Aux. | Configuration script |
filesystems.php | Aux. | Configuration script |
hashing.php | Aux. | Configuration script |
jwt.php | Class | Class source |
logging.php | Class | Class source |
mail.php | Aux. | Configuration script |
queue.php | Aux. | Configuration script |
sanctum.php | Class | Class source |
services.php | Aux. | Configuration script |
session.php | Aux. | Configuration script |
view.php | Aux. | Configuration script |
Files (133) | / | database |
File | Role | Description | ||
---|---|---|---|---|
factories (1 file) | ||||
migrations (8 files) | ||||
seeders (6 files) |
Files (133) | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...et_tokens_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
2019_12_14_000001_...ss_tokens_table.php | Class | Class source |
2024_12_12_070606_..._products_table.php | Class | Class source |
2024_12_12_115424_create_carts_table.php | Class | Class source |
2024_12_12_121238_...art_items_table.php | Class | Class source |
2024_12_12_162716_...te_orders_table.php | Class | Class source |
Files (133) | / | database | / | seeders |
File | Role | Description |
---|---|---|
CartItemSeeder.php | Class | Class source |
CartSeeder.php | Class | Class source |
DatabaseSeeder.php | Class | Class source |
OrderSeeder.php | Class | Class source |
ProductSeeder.php | Class | Class source |
UserSeeder.php | Class | Class source |
Files (133) | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
Files (133) | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files (133) | / | routes |
File | Role | Description |
---|---|---|
api.php | Example | Example script |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Example | Example scriptc |
Files (133) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (4 files) | ||||
Unit (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files (133) | / | tests | / | Feature |
File | Role | Description |
---|---|---|
CartTest.php | Class | Class source |
OrderTest.php | Class | Class source |
ProductTest.php | Class | Class source |
UserTest.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 |
laravel-simple-ecomm-2024-12-15.zip 123KB | |
laravel-simple-ecomm-2024-12-15.tar.gz | |
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.