https://github.com/james2doyle/phalcon-security
A simple demo of the Phalcon Security and Session usage
https://github.com/james2doyle/phalcon-security
Last synced: about 1 year ago
JSON representation
A simple demo of the Phalcon Security and Session usage
- Host: GitHub
- URL: https://github.com/james2doyle/phalcon-security
- Owner: james2doyle
- License: mit
- Created: 2015-03-16T20:35:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T17:09:54.000Z (almost 11 years ago)
- Last Synced: 2025-04-02T22:33:06.476Z (about 1 year ago)
- Language: PHP
- Size: 144 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phalcon Security Example Repo
=============================
This is a very rough example of how to use the session and security dependecies in Phalcon PHP. This is essentially taken from the [Security](http://docs.phalconphp.com/en/latest/reference/security.html) article on the Phalcon Docs site.
### Setup
**Database Settings**
* Create a database
* Update the `database` settings in `app/config/config.php`
* Update the `baseUri` in `app/config/config.php`
**Migration**
If you have [Phalcon Dev Tools](http://docs.phalconphp.com/en/latest/reference/tools.html) installed you can run the included migration. Just run `phalcon migration run`. If you don't have the dev tools, run the SQL file instead.
**Create user and login**
* Create a new user at `base_url/users/new`
* Visit `base_url/admin` to login
* See green and be happy