Download the PHP package escuccim/larablog without Composer

On this page you can find all versions of the php package escuccim/larablog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package larablog

escuccim

Latest Version on Packagist Build Status

This is a simple out-of-the-box blog package for Laravel. It supports localization and currently has files for English and French, but adding new languages is easy. Note that this package will localize to the language set in the app config. No means of translating the page per request is provided. If you need this look at escuccim/translate, my package which will translate either based on subdomain or from a session variable.

Install

This package uses Laravel's Auth, so you must have installed that package prior to installing this.

Via Composer

Next register the components:

In config/app.php add the following to the providers array:

And add the following to the aliases array:

This package uses a middleware to determine what pages the user has access to. By default it uses my middleware which uses a flag in the Users table to indicate whether the user is an admin.

If you wish to use a different middleware change the 'middleware' key in config/blog.php to be the class of or an alias to the middleware you wish to use.

Run the migrations which will create the necessary database tables and add a few columns to the users table.

The migrations will automatically seed the DB with a default user: [email protected] with password: password. It will also add a test blog article and a label called test.

The migrations also add two fields to the users table:

To load the CSS and JS files this package needs for the editor you need to add the following to your layouts/app.blade.php file in the header section:

To enable the Javascript functions of the editors you will need to remove the script reference to app.js from the bottom of the layout file and put it in the header.

You can choose to publish the config file and the views with:

The publishable files are separated into three groups:

To only publish one of these groups add --tag=[lang|config|views]

Notes on Publishable Files: My code uses strftime to format the dates, but you will need to set the locale yourself, with setlocale() and will need to make sure you have the locales installed.

The config file allows you to change the Blog title and description in the feed, to set the number of results per page returned by the paginator, and to disable caching if you so desire.

My views use Bootstrap CSS and some Javascript which comes with Laravel. If you change the CSS or JS files some features may not work.

Note that the comments functionality of the blog will display an image referenced in the Users table if one exists, so if you want to allow users to upload images you need to add functionality for this yourself.

Usage

This package includes it's own Routes, Models, Controllers, and Views so should work out of the box. To use it just point the browser to /blog. My views extend layouts/app.blade.php and require that you add a line to that file as specified above. They also use Bootstrap CSS for layout and the default JS files that come with Laravel.

If you want to edit my views you can publish them to resources/views/vendor/escuccim with:

This package also includes an RSS feed which uses the Roumen\Feed package to generate the feed. This is available at /feed.

By default the translation will use the value set in your config/app.php. If you want to overwrite the language on a per request basis write the language you want to use to session.locale and that value will replace the config value per request. Note that for time localization you will additionally need to setlocale(). My code currently does this but only for French as this is dependent on you having the proper locales installed on your server.

This package uses a field it adds to the users table called 'type' to determine if the user has permission to add, edit and delete blog posts. If you wish to use your own permission system you can replace the value for 'is_user_admin' in the config file blog.php. This function should return true if the user has permission to do admin tasks and false otherwise.

In the config file there is a value called use_rich_card. If this is set to true a rich card will be added to the article pages and a field will be added to the add and edit article forms to allow you to specify a URI to an image to be used in the rich card.

Contributing

Please see CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of larablog with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5.1
php Version ~5.6|~7.0
roumen/feed Version ^2.10
guzzlehttp/guzzle Version ^6.2
laracasts/flash Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package escuccim/larablog contains the following files

Loading the files please wait ....