Say hello to my new library: Postal

I did it again. It’s a new library called Postal (don’t tell me how I came up with this title…). It’s a library that will allow you to pass informational messages between requests.

This library is using the CodeIgniter’s session library to pass the messages between the requests. As usual, it all started from using another library. The Jens Seger Message library ( was a good library, but I thought it needed improvements. But working with CodeIgniter 3, I told myself why not create another library and start all over.

So, meet my new library, CodeIgniter Postal (

This one is simply to use. You only have to copy the Postal.php into your application/libraries, do a $this->load->library(‘postal’); and you’re ready to go.

You can add messages by using the add() method:

You can actually group the messages (and the delimiters between the message groups) in any way you need to by creating a postal.php file inside the application/config library and writing something like this:

If you do this, the message groups from the configuration file will be used and not “success”, “error”, nor “message”.

You can display the messages in any other controller by using the get() method:


Simple, isn’t it?

You can read more about it on the Github page.

I sure hope you will like it.

0 thoughts on “Say hello to my new library: Postal

  • I’m wondering if this library could be used to share messages amongs members working on the same platform/Project. Could the messages addressed to specific users? Thanks again for the great tutorial…I’m learning a lot following you.

  • MegaMenu with images and video
    Template System with theming functinality
    Paypal Payment in CI
    integrate projects from github to CI
    CLI updated codes
    Blogging system using parsedown/markdown
    CKEditor on admin pages
    Extend Unit testing(Not using another testing framework instead more functions additional from default)
    Profiling, with benchmark and checker of variables
    Dynamic Environment using php not in HTACCESS
    Browse Manager in PHP
    Progressive Enhancment in Codeigniter (huge and big topic)
    Chating system in codeigniter
    adding smiley or emoticons without using smiley libray since it was stated it would be deprecated in the future

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

No spam? * Time limit is exhausted. Please reload CAPTCHA.