Skip to content
Projects

About

Laravel & Filament-based school management platform for small and medium institutions

Web & App Development

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+3
in 15 days
+4
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

About this project

All Contributors

Academico is an open-source, Laravel-based school management platform. Its main features include course management, enrolments management, resources scheduling, reports and stats. It is primarily targeted at small and medium-sized institutions who need a simple and affordable solution to manage their school and courses.

New 2026 version (Filament-based)

The first versions of this project were built with the awesome Backpack for Laravel framework. However, the application was entirely rewritten with Laravel Filament, which is the only supported version. The Filament version started from the same database structure, but it now evolves independently: it is no longer a drop-in replacement for the Backpack version, and moving an existing Backpack installation to it would need a dedicated migration.

Disclaimer

This software is provided "as-is", without any warranties. Please use with caution, and report bugs if you encounter them. Contributions are welcome to make Academico a better, more usable software.

Contributors welcome! ✨

If you are using this applications and want to make some improvements for your own needs, or just willing to contribute to an open-source project, feel free to open an issue and make some suggestions. Contributions might go from writing code, to extending the documentation or the translations, or simply suggesting new features, UX improvements, and so on.

Thanks goes to these wonderful people for past or current version of this application (emoji key):

Thomas Debay
Thomas Debay

💻 📖 🤔 🚧 ⚠️
Marc Marina Miravitlles
Marc Marina Miravitlles

💻
Damien Baudet
Damien Baudet

🚧 💻
Mubarak M Aminu
Mubarak M Aminu

💻
Ibrahim Abdullahi Aliyu
Ibrahim Abdullahi Aliyu

💻
AleksandarMitevski
AleksandarMitevski

⚠️ 💻
Tano Rojas
Tano Rojas

⚠️ 💻
Nikola Cirkovic
Nikola Cirkovic

🐛 🚧
quieneslatern
quieneslatern

🌍
Vitor Micillo
Vitor Micillo

🚧
Tatiana Goloviznina
Tatiana Goloviznina

💻
Rm Yakovenko
Rm Yakovenko

💻
Sam
Sam

💻 📖
Rafael Farias
Rafael Farias

🌍
kta1kri
kta1kri

🛡️
tonghuaroot (童话)
tonghuaroot (童话)

🛡️
Nathan Lima
Nathan Lima

🛡️
Dez (Spiggle)
Dez (Spiggle)

🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

Getting started

This application runs in Docker using FrankenPHP (a modern PHP application server built on Caddy) and MariaDB.

Prerequisites

Nothing else is needed on your machine: PHP, Composer and Node run inside the containers.

Quick Start

  1. Clone the repository:
git clone https://github.com/academico-sis/academico.git
cd academico
  1. Start the containers and wait until the application is ready:
docker compose up -d --wait

The first run builds the image and installs the dependencies, which takes a few minutes. You can follow the progress with docker compose logs -f app.

This starts three services:

  • app — the FrankenPHP application server on http://localhost:8080
  • assets — builds the frontend assets, and rebuilds them when you edit resources/css or resources/js
  • mariadb — a MariaDB 11 database server on port 3306

On startup, the app container creates .env from .env.example if it does not exist, installs the Composer dependencies, generates the application key and runs the database migrations.

  1. Create the administrator account and the reference data:
docker compose exec app php artisan db:seed
  1. Open http://localhost:8080 in your browser and log in with [email protected] / secret.

  2. Go to Settings > General settings to enter your institution's name, logo, language, timezone and currency, and to enable the features you need, such as certificates. These settings are stored in the database, not in .env.

Sample data

To explore the application with sample courses, students and enrollments, rebuild the database with the test seeder instead. This deletes all existing data.

docker compose exec app php artisan migrate:fresh --seeder=TestSeeder

Then log in with [email protected] / secret.

Changing the ports

If port 8080 or 3306 is already used on your machine, set other ports when starting the containers:

APP_PORT=8081 FORWARD_DB_PORT=3307 docker compose up -d --wait

You can also add these two variables to your .env file.

Running commands inside the container

All PHP and artisan commands should be run inside the app container:

# Run tests (they use an in-memory SQLite database, not the MariaDB data)
docker compose exec app php artisan test

# Run the linter
docker compose exec app ./vendor/bin/pint

# Run any artisan command
docker compose exec app php artisan <command>

How the development setup works

Your checkout is mounted into the containers, so code changes are visible immediately. The vendor and node_modules directories are kept in Docker volumes rather than on your machine, which avoids slow file sharing on macOS and Windows. These two directories therefore stay empty on the host.

After pulling changes that modify composer.lock or package-lock.json, restart the containers to install the new dependencies:

docker compose restart

Set AUTO_MIGRATE=false in the app service environment if you prefer to run the migrations yourself.

Stopping the environment

docker compose down          # Stop containers (data is preserved in Docker volumes)
docker compose down -v       # Stop containers and delete the database and dependency volumes

Production image

docker-compose.yml is meant for development. A production image is built from the same Dockerfile and published on Docker Hub as academicosis/academico.

Serving several institutions

An install serves a single institution by default. To serve several, each with its own database, files and domains, set LANDLORD_DB_DATABASE to a separate database that holds the list of institutions (the tenants) and their domains. The DB_* user needs the right to create databases: each institution gets its own database on the same server.

# Create the landlord tables (and, later, run every migration after an upgrade)
php artisan academico:migrate --force

# Create an institution: its database, files folder, domain and first administrator, who receives a link to choose a password
php artisan academico:tenant:create "Example School" school.example.org [email protected] --admin-firstname=Jane --admin-lastname=Doe

# Add another domain, make it the primary one (used in links and emails), or remove one
php artisan academico:tenant:domain "Example School" www.example-school.org --primary
php artisan academico:tenant:domain "Example School" school.example.org --remove

# List the institutions
php artisan academico:tenant:list

# Run a command for one institution, or for all of them without --tenant
php artisan tenants:artisan "academico:resync-coursetimes 12" --tenant=1
  • Each domain must point to the server. Requests on a host name that matches no institution get a 404, unless TENANCY_DEFAULT_TENANT names an institution to use instead.
  • One scheduler (php artisan schedule:run every minute) and one queue worker serve all institutions. Scheduled tasks run for each institution at its time, in its timezone. The queue and the cache are stored in the landlord database.
  • The files of each institution are in storage/tenants/<ID>.
  • Set the database with DB_HOST, DB_PORT, DB_USERNAME and DB_PASSWORD: DB_URL is refused, because a database named in it would win over the database of each institution. The file cache store is refused as well, because it would share cached data between institutions.
  • academico:migrate goes on with the other institutions when the migrations of one fail, and then exits with an error.

A single-institution install needs none of this: its database also holds the landlord tables, and its one institution answers on any host name.

Behind Traefik

One web container serves all institutions, so its routes are best kept in a file provider configuration rather than in Docker labels: Traefik reloads the file when it changes, without recreating the container. When you add an institution, add its domains to the file; Traefik then requests their certificates.

# traefik/dynamic/academico.yml, loaded with
#   --providers.file.directory=/dynamic
#   --providers.file.watch=true
http:
  routers:
    academico-example-school:
      rule: Host(`school.example.org`) || Host(`www.example-school.org`)
      entryPoints: [websecure]
      service: academico
      tls:
        certResolver: letsencrypt
  services:
    academico:
      loadBalancer:
        servers:
          - url: http://academico:80

Redirect HTTP to HTTPS on the web entry point (--entrypoints.web.http.redirections.entrypoint.to=websecure), or add an HTTP router with a redirectScheme middleware.

services:
  academico:
    image: academicosis/academico:latest
    # The server starts even when the migrations of one institution fail: the others stay online
    command: sh -c 'php artisan academico:migrate --force; php artisan optimize && frankenphp run --config /etc/caddy/Caddyfile'
    env_file: .env
    environment:
      SERVER_NAME: ":80"    # Traefik handles HTTPS
    volumes:
      - ./storage:/app/storage

  academico-scheduler:
    image: academicosis/academico:latest
    command: sh -c 'while true; do php artisan schedule:run --no-interaction; sleep 60; done'
    env_file: .env
    volumes:
      - ./storage:/app/storage

  academico-worker:
    image: academicosis/academico:latest
    command: php artisan queue:work --tries=3 --timeout=60
    env_file: .env
    volumes:
      - ./storage:/app/storage
  • One web container, one scheduler and one worker serve all institutions. The storage folder must be writable by www-data (UID 33).
  • The web container runs the migrations of every institution when it starts. If those of one institution fail, the error is in the container logs (docker compose logs academico); fix the cause, then run php artisan academico:migrate --force again.
  • Set TRUSTED_PROXIES=* when the application container publishes no port and can only be reached through Traefik, so that the client IP addresses and HTTPS links are right.
  • The database user creates one database per institution, named after TENANCY_DATABASE_PREFIX (academico_ by default) and the institution. With MariaDB, this grant lets it create and use the databases whose name starts with the prefix. Choose a prefix that no other database on the server uses, since the grant covers all of them, and name the landlord database with it, for example academico_landlord.
GRANT ALL PRIVILEGES ON `academico\_%`.* TO 'academico'@'%';

Contributing

See CONTRIBUTING.md for how to set up a development environment and submit changes. Notable changes are listed in CHANGELOG.md.

To report a security problem, follow the security policy instead of opening a public issue.

License

Academico is open-source software licensed under the MIT License.

Explore related projects

Loading…