PHP Classes

PHP Student Sessions API: Calculate sessions for students to finish chapters

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 47 All time: 10,757 This week: 77Up
Version License PHP version Categories
student-sessions 1.0.0GNU General Publi...5PHP 5, Content management, Web services
Description 

Author

This package can calculate sessions for students to finish chapters.

It provides a simple API that can take Web requests to return information about student sessions.

Currently, it provides an API function that takes as input parameters the number of chapter days and the days the students have to study those chapters.

The API function returns a list of chapters and chapter sessions and the days that the students need to use to complete the study of all planned chapters.

Innovation Award
PHP Programming Innovation award nominee
May 2022
Number 7
A successful student needs to be prepared to show that he learned what he s supposed to learn from his teachers.

Usually, an exam presents exercises that the students need to do to prove they learned what teachers expect them to know.

When students have a limited period to study and be prepared to do the exam, they should plan better their studying efforts, so they prepare themselves in time for the exam date.

The package provides an API that can generate a study plan with the times and the chapters that the students need to go through to practice what they learn in time and pass the exam.



Manuel Lemos
Picture of Ahmed Saad
  Performance   Level  
Name: Ahmed Saad <contact>
Classes: 10 packages by
Country: Egypt Egypt
Age: ???
All time rank: 213721 in Egypt Egypt
Week rank: 47 Up2 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 7x

Documentation

<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>

<p align="center"> <a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a> </p>

Student Web Service

  • Set env `APP_URL`, `APP_API_URL`
  • Web Service URL `/v1/sessions`
  • Web Service Inputs - `start_date` __String__ date in format `d-m-Y`

    > __Note:__<br> > if start date is today it will be skipped and first session will be the next day in days array

    - `days` __array__ of week days that student will attend from `0` `saturday` to `6` `Friday` - `chapter_days`__Integer__ number of days to finish one chapter

  • Request Example:

    {
    	"start_date": "07-11-2017",
    	"days": [ 1, 3, 5 ],
    	"chapter_days": 3
    }
    
  • Response Example:

    {
        "success": true,
        "data": {
            "number_of_chapters": 30,
            "sessions_per_chapter": 3,
            "sessions_per_week": 3,
            "first_session_date": "Tue 07-11-2017",
            "last_session_date": "Sun 03-06-2018",
            "sessions": [
                {
                    "chapter": 1,
                    "sessions": [
                        "Tue 07-11-2017",
                        "Thu 09-11-2017",
                        "Sun 12-11-2017"
                    ]
                },
                {
                    "chapter": 2,
                    "sessions": [
                        "Tue 14-11-2017",
                        "Thu 16-11-2017",
                        "Sun 19-11-2017"
                    ]
                },
                .
                .
                .
                .
    
                {
                    "chapter": 30,
                    "sessions": [
                        "Tue 29-05-2018",
                        "Thu 31-05-2018",
                        "Sun 03-06-2018"
                    ]
                }
            ]
        },
        "message": "Successfully Retrieved"
    }
    
    

Postman Collection Link

Postman Collection

License

The Laravel framework is open-sourced software licensed under the MIT license.


  Files folder image Files (73)  
File Role Description
Files folder imageapp (1 file, 5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (11 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 2 directories)
Files folder imageresources (3 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .env.example Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

  Files folder image Files (73)  /  app  
File Role Description
Files folder imageConsole (1 file)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 3 directories)
Files folder imageProviders (5 files)
Files folder imageServices (3 files)
  Plain text file User.php Class Class source

  Files folder image Files (73)  /  app  /  Console  
File Role Description
  Plain text file Kernel.php Class Class source

  Files folder image Files (73)  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source

  Files folder image Files (73)  /  app  /  Http  
File Role Description
Files folder imageControllers (1 file, 2 directories)
Files folder imageMiddleware (5 files)
Files folder imageRequests (1 directory)
  Plain text file Kernel.php Class Class source

  Files folder image Files (73)  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAPI (1 file)
Files folder imageAuth (4 files)
  Plain text file Controller.php Class Class source

  Files folder image Files (73)  /  app  /  Http  /  Controllers  /  API  
File Role Description
  Plain text file StudentController.php Class Class source

  Files folder image Files (73)  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file ForgotPasswordController.php Class Class source
  Plain text file LoginController.php Class Class source
  Plain text file RegisterController.php Class Class source
  Plain text file ResetPasswordController.php Class Class source

  Files folder image Files (73)  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file EncryptCookies.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files (73)  /  app  /  Http  /  Requests  
File Role Description
Files folder imageAPI (1 file)

  Files folder image Files (73)  /  app  /  Http  /  Requests  /  API  
File Role Description
  Plain text file StudentRequest.php Class Class source

  Files folder image Files (73)  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files (73)  /  app  /  Services  
File Role Description
  Plain text file APIFormRequest.php Class Class source
  Plain text file APIResponseTrait.php Class Class source
  Plain text file APIValidationException.php Class Class source

  Files folder image Files (73)  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files (73)  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Plain text file services.php Class Class source
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files (73)  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (2 files)
Files folder imageseeds (1 file)

  Files folder image Files (73)  /  database  /  factories  
File Role Description
  Plain text file UserFactory.php Class Class source

  Files folder image Files (73)  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source

  Files folder image Files (73)  /  database  /  seeds  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source

  Files folder image Files (73)  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file robots.txt Doc. Documentation
  Accessible without login Plain text file web.config Data Auxiliary data

  Files folder image Files (73)  /  public  /  css  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data

  Files folder image Files (73)  /  public  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data

  Files folder image Files (73)  /  resources  
File Role Description
Files folder imageassets (2 directories)
Files folder imagelang (1 directory)
Files folder imageviews (1 file)

  Files folder image Files (73)  /  resources  /  assets  
File Role Description
Files folder imagejs (2 files, 1 directory)
Files folder imagesass (2 files)

  Files folder image Files (73)  /  resources  /  assets  /  js  
File Role Description
Files folder imagecomponents (1 file)
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files (73)  /  resources  /  assets  /  js  /  components  
File Role Description
  Accessible without login Plain text file Example.vue Data Auxiliary data

  Files folder image Files (73)  /  resources  /  assets  /  sass  
File Role Description
  Accessible without login Plain text file app.scss Data Auxiliary data
  Accessible without login Plain text file _variables.scss Data Auxiliary data

  Files folder image Files (73)  /  resources  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files (73)  /  resources  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files (73)  /  resources  /  views  
File Role Description
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files (73)  /  routes  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Accessible without login Plain text file web.php Aux. Auxiliary script

  Files folder image Files (73)  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (1 file)
  Plain text file CreatesApplication.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files (73)  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

  Files folder image Files (73)  /  tests  /  Unit  
File Role Description
  Plain text file ExampleTest.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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:47
This week:0
All time:10,757
This week:77Up