Download the PHP package hwai/slim-skeleton without Composer
On this page you can find all versions of the php package hwai/slim-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hwai/slim-skeleton
More information about hwai/slim-skeleton
Files in hwai/slim-skeleton
Package slim-skeleton
Short Description A Slim Framework skeleton application for rapid development
License MIT
Homepage https://github.com/ahmed741321/slim-skeleton
Informations about the package slim-skeleton
slim-skeleton Project
Introduction
Welcome to the Slim HWAI Project! This project provides a boilerplate setup using the Slim Framework, a PHP micro-framework designed for creating simple yet powerful web applications. This setup is intended to streamline the process of starting a new PHP project with Slim by providing a ready-to-use skeleton.
Installation
To install the Slim HWAI project, you will need Composer, a dependency management tool for PHP. Follow these steps to create a new project:
-
Ensure Composer is Installed: Make sure you have Composer installed on your system. You can download it from getcomposer.org.
-
Create a New Project: Run the following command in your terminal to create a new project based on the Slim HWAI boilerplate:
This command will create a new directory with the Slim HWAI project structure and install all necessary dependencies.
Project Structure
After installation, you will have a project with the following structure:
src/: Contains the source code for your application. This is where you'll place your routes, controllers, and any other business logic.public/: This is the web root directory. It contains publicly accessible files like HTML, CSS, JavaScript, and the entry point for your application (index.php).config/: Contains configuration files for your application. This might include settings for database connections, middleware, and other configuration parameters.vendor/: Contains Composer-managed libraries and dependencies. You generally won't need to modify anything here.tests/: (Optional) If you include testing in your project, this directory will hold your test cases and test-related configuration.
Running the Application
To start the application and view it in your web browser, you can use the built-in PHP web server. Navigate to the root directory of your project and run:
This will start a local server at http://localhost:8080. Open this URL in your browser to view your application.
Configuration
Configuration files are located in the config/ directory. Here, you can adjust settings specific to your environment, such as database credentials, environment variables, and other configuration parameters.
Development and Contribution
If you wish to contribute to the development of this project, follow these steps:
-
Fork the Repository: Click on the "Fork" button at the top-right of the repository page on GitHub.
-
Create a Feature Branch: Create a new branch for your feature or bug fix:
-
Make Changes: Implement your changes and test them locally.
- Submit a Pull Request: Push your changes to your forked repository and open a Pull Request (PR) on the original repository, providing a clear description of the changes you made.
Issues and Support
If you encounter any issues or have questions about the project, please:
- Open an Issue on GitHub with a detailed description of the problem or question.
- Contact us via email at [email protected] for additional support.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
luma-new-back
Routing
Register
📍 Endpoint
POST /register
📝 Description
تُستخدم هذه النقطة لتسجيل مستخدم جديد في النظام. يجب إرسال جميع البيانات المطلوبة في جسم الطلب بصيغة JSON.
📤 Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
📦 Request Body (JSON)
🔒 ملاحظات:
privacy_policyيجب أن تكون1لتأكيد الموافقة على الشروط.- يجب أن تطابق
password_confirmationكلمة المرور.user_typeيمكن أن تكونStudent,Teacher, أو نوع آخر حسب النظام.
✅ Successful Response (201 Created)
❌ Error Response Example
📌 Notes
- يُرسل الرابط إلى البريد الإلكتروني لتفعيل الحساب بعد التسجيل.
- يجب أن يكون البريد الإلكتروني صالحًا ونشطًا لتلقّي رسالة التفعيل.
- يتم حفظ عنوان الـ IP والمعلومات الخاصة بالطلب لأغراض التتبع والأمان.
🧪 Example using cURL
Login
📍 Endpoint
POST /login
الوصف
نقطة النهاية /login تُستخدم لتسجيل دخول المستخدمين عبر إرسال بيانات البريد الإلكتروني وكلمة المرور.
تقوم الخدمة بالتحقق من صحة البيانات، التحقق من حالة المستخدم، تسجيل المحاولات، وإنشاء توكن JWT في حالة النجاح.
طلب تسجيل الدخول (Request)
- الطريقة: POST
- الرابط:
/login - نوع المحتوى:
application/json
جسم الطلب (Body)
- email: البريد الإلكتروني للمستخدم (يجب أن يكون بصيغة صحيحة).
- password: كلمة المرور (بين 8 و 20 حرفًا).
استجابة ناجحة (Success Response)
- الحالة: 200 OK
- نوع المحتوى:
application/json
مثال على الاستجابة
- token: رمز JWT الذي يتم استخدامه للمصادقة في الطلبات المستقبلية.
- expires_in: مدة صلاحية التوكن بالثواني (600 ثانية = 10 دقائق).
استجابة في حالة الخطأ (Error Response)
مثال على استجابة خطأ في حالة بيانات غير صحيحة أو فشل تسجيل الدخول
- الحالة: 401 Unauthorized
- نوع المحتوى:
application/json
All versions of slim-skeleton with dependencies
slim/slim Version 4.*
slim/psr7 Version ^1.7
nyholm/psr7-server Version ^1.1
guzzlehttp/psr7 Version ^2
sapphirecat/slim4-http-interop-adapter Version ^1.1
laminas/laminas-diactoros Version ^3.3
tuupola/slim-basic-auth Version ^3.3
slim/http Version ^1.3
tuupola/cors-middleware Version ^1.4
intervention/image Version ^3.3
phpmailer/phpmailer Version ^6.9
illuminate/database Version ^11.0
robmorgan/phinx Version ^0.16.0
guzzlehttp/guzzle Version ^7.8
amphp/http-server Version ^3.3
amphp/amp Version ^3.0
amphp/socket Version ^2.3
react/stream Version ^1.4
defuse/php-encryption Version ^2.4
predis/predis Version ^2.2
twig/twig Version ^3.11
slim/twig-view Version ^3.4
symfony/console Version 6.4
nyholm/psr7 Version ^1.8
spiral/roadrunner-http Version ^3.5