{"id":16673956,"url":"https://github.com/andrey900/flight-skeleton","last_synced_at":"2025-04-09T20:07:06.282Z","repository":{"id":56948071,"uuid":"65667190","full_name":"andrey900/Flight-Skeleton","owner":"andrey900","description":"Simple skeleton Flight micro Framework application with Twig \u0026 Monolog \u0026 Eloquent ORM","archived":false,"fork":false,"pushed_at":"2019-01-15T11:25:02.000Z","size":870,"stargazers_count":18,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:06:59.370Z","etag":null,"topics":["eloquent","flight-php","flight-skeleton","monolog","php","skeleton-application","twig"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrey900.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-14T13:19:46.000Z","updated_at":"2023-11-20T08:11:26.000Z","dependencies_parsed_at":"2022-08-21T03:10:12.539Z","dependency_job_id":null,"html_url":"https://github.com/andrey900/Flight-Skeleton","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrey900%2FFlight-Skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrey900%2FFlight-Skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrey900%2FFlight-Skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrey900%2FFlight-Skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrey900","download_url":"https://codeload.github.com/andrey900/Flight-Skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eloquent","flight-php","flight-skeleton","monolog","php","skeleton-application","twig"],"created_at":"2024-10-12T12:28:52.895Z","updated_at":"2025-04-09T20:07:06.253Z","avatar_url":"https://github.com/andrey900.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flight Skeleton\nSimple **Flight** micro Framework skeleton application with **Twig** \u0026amp; **Monolog** \u0026amp; **Eloquent ORM**. This package is suitable for any web hosting with **php** version higher **5.3**. Use this skeleton application to quickly setup and start working on a new application. This application does not use latest version libraries: Monolog, Eloquent ORM - since the more recent versions use a higher php version.\n\n# Menu\n - **Installation**\n    - [Use composer](https://github.com/andrey900/Flight-Skeleton#installation-use-composer)\n    - [Use git](https://github.com/andrey900/Flight-Skeleton#installation-use-git)\n    - [Use unix console](https://github.com/andrey900/Flight-Skeleton#installation-of-the-unix-console)\n    - [Use browser](https://github.com/andrey900/Flight-Skeleton#installation-use-browser)\n - **Start**\n    - [First start](https://github.com/andrey900/Flight-Skeleton#first-start)\n - **Structure**\n    - [Folder structure](https://github.com/andrey900/Flight-Skeleton#folder-structure)\n    - [Files structure](https://github.com/andrey900/Flight-Skeleton#files-structure)\n - **Examples**\n    - [Config example](https://github.com/andrey900/Flight-Skeleton#config-example)\n    - [Install example site](https://github.com/andrey900/Flight-Skeleton#install-example-site-and-db-structure)\n - [More links and docs](https://github.com/andrey900/Flight-Skeleton#more-links-and-docs)\n\n### Installation use composer\n\n```console\n    $ composer create-project andrey900/flight-skeleton path/to/install\n```\n\nComposer will create a new Flight Skeleton project under the `path/to/install` directory.\n\n### Installation use git\n\n```console\n    $ git clone andrey900/Flight-Skeleton path/to/install\n```\n\nGit will create a new Flight Skeleton project under the `path/to/install` directory.\n\n### Installation of the unix console (not realization)\n\n```console\n    $ mkdir path/to/install \u0026\u0026 cd path/to/install\n    $ wget -c https://github.com/andrey900/Flight-Skeleton/archive/master.zip -O FlightSkeleton.zip\n    $ unzip FlightSkeleton.zip \u0026\u0026 rm FlightSkeleton.zip\n```\n\n### Installation use browser\n\nDownload the zip archive [use link](https://github.com/andrey900/Flight-Skeleton/archive/master.zip), or use button \"Clone or download -\u003e Download zip\". Uncompressed archive in you hosting or local directory.\n\n\u003e Remember: The string **\"path/to/install\"** should be replaced by your folder path.\n\n### First start\n\nOpen file **src/bootstrap/config.php** for edit, and enter the correct data for your connection db. More info for config file [link](https://github.com/andrey900/Flight-Skeleton#config-example)\n\nCopy files to you root webserver folder. Open browser input you host.\nLocal start use php in unix:\n    \n```console\n    $ cd path/to/install\n    $ php -S 127.0.0.1:8080\n```\n\nAfter open browser use link: [http://localhost:8080](http://localhost:8080)\n\n### Folder structure\n\n    .\n    ├── .git                # git repository folder\n    ├── cache               # Cache folder\n    │   └── ...             # Cache type, etc\n    ├── log                 # Logs files\n    ├── src                 # Folder for you application source code\n    │   ├── App             # You namespace for library and classes\n    │   │   └── ...         # Make you structure, etc\n    │   ├── bootstrap       # Files using for starting application\n    │   ├── Controllers     # Controllers for you application\n    │   └── Models          # Model for you application\n    ├── templates           # Templates use in you application\n    │   ├── main            # Holds name for template, use for many templates and easy substitution\n    │   └── ...             # Make you template, etc\n    ├── uploads             # Static files\n    ├── ...                 # Make you folder, etc\n\n### Files structure \n    \n    .\n    ├── src\n    │   ├── App\n    │   │   ├── Routes                  # Example: Routes namespace\n    │   │   │   └── RouteGenerator.php  # Example: Make array for config, and init this routers\n    │   │   └── Utils.php               # Example: Class for utilities\n    │   ├── bootstrap\n    │   │   ├── config.php              # Config array for you application: @return array\n    │   │   ├── dependencies.php        # Init dependencies and class in Flight\n    │   │   ├── routes.php              # Init routes in Flight\n    │   │   └── start.php               # Boot file for you application\n    │   ├── Controllers\n    │   │   ├── FrontController.php     # Example: Base controller and logic for front-end\n    │   │   └── PageController.php      # Example: Specific controller for type page\n    │   └── Models\n    │       └── Pages.php               # Example: Page model for sql table \"pages\"\n    └── templates\n        └── main                        # Example: template\n             ├── base.twig              # Base template layout\n             ├── home.twig              # Home template\n             ├── pageLists.twig         # List pages template\n             ├── pageDetail.twig        # Detail page template\n             └── 404.twig               # 404 error - page not found template\n\n### Config example\n\nStructure file config - multidimensional array. This file must return always array for correctly functioning your application!\n\nFirst level - key for config library\nSecond level - array - with a convenient structure for use, most often used key-value\n\nExample:\n\n```php\n    return array(\n        ...\n        \"you_key\" =\u003e array(\n            \"you_first_key\"  =\u003e \"value1\",\n            \"you_second_key\" =\u003e \"value2\",\n        ),\n    );\n```\n\n### Install example site and db structure\n\nFollow for link: ***/install-example/*** and click button \"*Install*\".\n\n\u003e Remember: You must first start and correctly configure a database connection.\n\n### More links and docs\n\nMore information can be found in the documentation of individual system modules:\n  - [Flight](http://flightphp.com/learn/)\n  - [Twig](http://twig.sensiolabs.org/documentation)\n  - [Illuminate ORM](https://laravel.com/docs/4.2/queries)\n  - [Monolog](https://github.com/Seldaek/monolog/blob/master/doc/01-usage.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrey900%2Fflight-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrey900%2Fflight-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrey900%2Fflight-skeleton/lists"}