-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8e4bc
commit fa0f92d
Showing
9 changed files
with
137 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import Layout from "@/components/Layout"; | ||
import Button from "@/components/Common/button"; | ||
import Section from "@/components/Common/section"; | ||
import Alert from "@/components/Common/alert"; | ||
import Tabs from "@/components/Common/tab"; | ||
import Step from "@/components/Common/step"; | ||
import Card from "@/components/Common/card"; | ||
import Important from "@/components/Common/important"; | ||
import Highlight from "react-highlight"; | ||
import Link from "next/link"; | ||
import NextPage from "@/components/Common/nextpage"; | ||
|
||
<Layout> | ||
# استقرار برنامههای Lumen در لیارا | ||
<hr className="mb-2" /> | ||
<a className="blue-link" href="https://lumen.laravel.com/">Lumen</a> یک میکرو فریمورک PHP است که توسط تیم لاراول توسعه داده شده و برای ساخت APIهای سریع و کاربردهای کوچک استفاده میشود. این فریمورک از معماری لاراول بهره میبرد اما سبکتر و سریعتر است. | ||
|
||
|
||
<div className='h-2' /> | ||
شما میتوانید پروژههای Lumen خود را با <a href="../how-tos/create-app" className="blue-link">ایجاد برنامههای Laravel</a> بر روی لیارا مستقر کنید. لیارا، از این میکرو فریمورک به صورت کامل پشتیبانی میکند و نیازی | ||
نیست که شما تغییر خاصی را در برنامه خود لحاظ کنید. نمونه یک فایل <Important>composer.json</Important> در پروژههای Lumen در ادامه آمده است: | ||
<div className="h-2" /> | ||
<div dir='ltr'> | ||
<Highlight className="json"> | ||
{`{ | ||
"name": "laravel/lumen", | ||
"description": "The Laravel Lumen Framework.", | ||
"keywords": ["framework", "laravel", "lumen"], | ||
"license": "MIT", | ||
"type": "project", | ||
"require": { | ||
"php": "^8.1", | ||
"laravel/lumen-framework": "^10.0" | ||
}, | ||
"require-dev": { | ||
"fakerphp/faker": "^1.9.1", | ||
"mockery/mockery": "^1.4.4", | ||
"phpunit/phpunit": "^10.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\\\": "app/", | ||
"Database\\\\Factories\\\\": "database/factories/", | ||
"Database\\\\Seeders\\\\": "database/seeders/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Tests\\\\": "tests/" | ||
} | ||
}, | ||
"scripts": { | ||
"post-root-package-install": [ | ||
"@php -r \\"file_exists('.env') || copy('.env.example', '.env');\\"" | ||
] | ||
}, | ||
"config": { | ||
"optimize-autoloader": true, | ||
"preferred-install": "dist", | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true | ||
} | ||
`} | ||
</Highlight> | ||
</div> | ||
<div className="h-2" /> | ||
<Alert variant="success"> | ||
<p> | ||
یک پروژه Lumen آماده به استقرار در <a href="https://github.com/liara-cloud/fastify-getting-started" className="blue-link">اینجا</a> وجود دارد که میتوانید از آن، استفاده کنید. | ||
</p> | ||
</Alert> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters