ausi/slug-generator

Got error from your library.

jaiminrockersinfo opened this issue · 5 comments

Can you please give me suggestion which version we can use for this library?

Message: Class 'Locale' not found

`An uncaught Exception was encountered
Type: Error

Message: Class 'Locale' not found

Filename: F:\XAMPP\htdocs\rockers_equity_development_new\vendor\ausi\slug-generator\src\SlugOptions.php

Line Number: 189`

same problem here.

have opend a thread in the contao-forum with error message and PHP version:

https://community.contao.org/de/showthread.php?77592-Error-Attempted-to-load-class-quot-Locale-quot-from-the-global-namespace

any advice is higly appreciated

best regards

problem solved:

intl extension in PHP was missing.

ausi commented

Yes, the library requires the Intl extension to be installed with ICU version 4.2.1 or higher.

If you are using Composer to install the slug generator this requirement should be checked for automatically.

Hello,

I have reopened this ticket.
I have using centos and I don't find package PHP-Intl extension.

How can I use this extension?

ausi commented

I have using centos and I don't find package PHP-Intl extension.

You can take a look at the following article on Stack Overflow: https://stackoverflow.com/questions/14679990