PHPackages                             mathcale/silex-base-project - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. mathcale/silex-base-project

ActiveLibrary[Templating &amp; Views](/categories/templating)

mathcale/silex-base-project
===========================

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

1.2.3(9y ago)039MITPHPPHP &gt;=5.5.9

Since Jan 26Pushed 9y agoCompare

[ Source](https://github.com/mathcale/silex-base-project)[ Packagist](https://packagist.org/packages/mathcale/silex-base-project)[ Docs](https://github.com/mathcale/silex-base-project)[ RSS](/packages/mathcale-silex-base-project/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (8)Versions (14)Used By (0)

Silex Base Project
------------------

[](#silex-base-project)

[![Packagist](https://camo.githubusercontent.com/9c7821cf3680f6703131c6678739509bcac4e645430b32f4baf469570d09b576/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61746863616c652f73696c65782d626173652d70726f6a6563742e737667)](https://packagist.org/packages/mathcale/silex-base-project)

A simple Silex 2.x base project with authentication, routing, twig templates, env. variables and some other cool stuff.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5.9
- Composer
- Apache Web Server

**NOTE**: If you're using another webserver, take a look at the [official documentation](http://silex.sensiolabs.org/doc/2.0/web_servers.html) on how to properly set it up.

Running the app
---------------

[](#running-the-app)

1. Clone the repo or get it from Packagist by running `composer create-project --prefer-dist mathcale/silex-base-project` on your websever root (e.g. `/var/www/html` ou `C:/wamp/www`)
2. `cd silex-base-project`
3. Edit the `.env` file with necessary info (database credentials, debug mode...)
4. Start your web server and go to the project's url (e.g. `http://localhost/silex-base-project`)
5. Have fun using Silex!

### Creating the database

[](#creating-the-database)

Now you can create a database schema by running the `make:db` command. To accomplish that, `cd` to the project's root and run `php bin/console make:db --name DB_NAME`, where `DB_NAME` == the name you want for your database.

If you already have a database, don't forget to change the SQL queries at `src/Controllers/AuthController.php` to match your schema.

ProTips(tm)
-----------

[](#protipstm)

- If you want to use npm packages, make sure to update your `.gitignore` with the `node_modules` folder
- If you have cloned the repo, run `composer install` to download the project dependencies and then create the `.env` file by running `php -r "file_exists('.env') || copy('.env.example', '.env');"`
- If you used `bin/console` to create your database, the default login credentials are 'admin' and '123456' (encrypted using `$app['security.encoder.digest']->encodePassword()`)

Contributing
------------

[](#contributing)

Open Source projects are made for the community and by the community. It would be nice to have more people interacting and helping to improve this codebase. So, feel free to open (actual) issues and send pull requests if you fixed/implemented something.

License
-------

[](#license)

MIT License

Copyright (c) 2017 Matheus Calegaro

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity65

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~15 days

Total

12

Last Release

3320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a75c8ab2846ff8dbc2223b29d750b4ab68e70d3be2f22f9b972a5b7736bc6a4?d=identicon)[mathcale](/maintainers/mathcale)

---

Tags

phpprojectsilextemplatetwigbootstrapbasesilex

### Embed Badge

![Health badge](/badges/mathcale-silex-base-project/health.svg)

```
[![Health](https://phpackages.com/badges/mathcale-silex-base-project/health.svg)](https://phpackages.com/packages/mathcale-silex-base-project)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
