Giter VIP home page Giter VIP logo

edu-framework's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

odiyach edenboh

edu-framework's Issues

[REF] Clean Code v2.0

Faire une pass sur la PHPDoc à faire dans les nouveaux codes

  • Command API
  • Command Génération de commande
  • Classe Request
  • Bar Debug

[DEP] Suppression des commandes docker dans composer

Suppression des commandes composer lié a docker. Nous partons sur un choix unique à la racine du projet.
Afin de permettre a la bar de debug de se référencer au fichier de config compose.yml

  • Mettre la documentationà jour

Méthode controllerInterace::execute

Discussed in #15

Originally posted by bfoujols August 13, 2023
La méthode exécute de controllerInterace devrait peut être pouvoir ne rien retourner pour les cas ou les routes font des redirections sur header, par exemple lors d'un logout

Mettre en place des sessions

Discussed in #14

Originally posted by bfoujols August 13, 2023
La gestion des sessions, mettre session start dans index.php 👍

Je pensais laisser les pour le reste, laisser les étudiants faire l'implémentation des sessions.

Tu en penses quoi ? @JPechberty

[FIX] require symfony/yaml 6.4.x-dev

studoo/edu-framework[v0.2.1, ..., v0.3.0] require symfony/yaml 6.4.x-dev -> found symfony/yaml[6.4.x-dev] but it does not match your minimum-stability.

[DEP] Bootstrap 5.3 Clean

Suppression du code Bootstrap dans les templates

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
  • implementation dans le render par defaut

Sécuriser INDEX

Mettre des vérifications

  • Version PHP
  • Autoload
  • Gestion de output des erreurs

[NEW] Faire une page d'accueil sans controller

Faire une page / par default sans controller
Avec un message de redirection vers la documentation pour créer son premier controller

  • Effacer les controllers en exemple
  • Mettre les controllers exemple dans la documentation

Start projet

  • Composer
  • GitIgnore
  • DotEnv
  • QA Code
  • Testing
  • Readme
  • Packager publish

[FIX] Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_METHOD']. Use isset() or empty() to check the index exists before using it

Codacy detected an issue:

Message: Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_METHOD']. Use isset() or empty() to check the index exists before using it

Occurred on:

Currently on:

[UPD] Activer le cache TWIG

$this->twig = new Twig_Environment($loader, $params); $this->twig->setCache('/path/to/compilation_cache');

Class Loader

Mettre en place une classe loader dans l'index
Elle chargera

  • Dotenv
  • Twig
  • FastRoute

Class Config

Faire une classe Config pour initialiser

  • Path projet
  • Statut (test/prod)
  • Validation des Dotenv

[FIX] Problème de build

Voici l ‘erreur apres build, le dossier /config a une Maj dans le dossier app -> app/Config/routes.yaml

CleanShot 2024-02-02 at 19 51 42@2x

[NEW] Activation du dump dans twig

<?php

namespace Studoo\EduFramework\Core\View;

use Twig\Environment;
use Twig\Loader\FilesystemLoader;
use Twig\Extension\DebugExtension;

class TwigCore
{
    public static function getEnvironment(): Environment
    {
        $loader = new FilesystemLoader('/path/to/templates'); // Remplacez par le chemin de vos templates
        $twig = new Environment($loader, [
            'debug' => true, // Activez le mode debug
            // ...
        ]);

        // Ajoutez l'extension Debug
        $twig->addExtension(new DebugExtension());

        return $twig;
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.